pgsql: Check for Consts in constraint definitions

Поиск
Список
Период
Сортировка
Искать

pgsql: Check for Consts in constraint definitions

От:
Noah Misch <noah@leadboat.com>
Дата:
Check for Consts in constraint definitions

Similar to previous commit, we also need to look more closely at a
dependency from a constraint to a composite type.  The constraint's
DEFAULT might contain a Const or other expression that would need to
be rewritten, if the composite type was ALTERed.

For all reporters and public discussions, see previous commits.

Co-authored-by: Nathan Bossart 
Reviewed-by: Amit Langote 
Reviewed-by: Andres Freund 
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7fe0b6c8ef2c81281adfc42adf09cab754ed4247
Author: Heikki Linnakangas 

Modified Files
--------------
src/backend/commands/tablecmds.c                | 32 ++++++++++++++++++++++++-
src/test/regress/expected/alter_column_type.out | 23 ++++--------------
src/test/regress/expected/alter_table.out       |  9 ++++---
src/test/regress/sql/alter_column_type.sql      | 10 ++------
src/test/regress/sql/alter_table.sql            |  7 +++---
5 files changed, 44 insertions(+), 37 deletions(-)

FAQ