Check for Consts in domain DEFAULTs Similar to previous commits, also look more closely at a type depending on a composite type. If it's a domain, its DEFAULT expression might contain a Const 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 <[email protected]> Reviewed-by: Amit Langote <[email protected]> Reviewed-by: Andres Freund <[email protected]> Security: CVE-2026-6460 Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6b093b4610b23f4e9b6cc70f1c2f231f3c5a63d5 Author: Heikki Linnakangas <[email protected]> Modified Files -------------- src/backend/commands/tablecmds.c | 22 +++++++++++--- src/test/regress/expected/alter_column_type.out | 38 ++++++------------------- src/test/regress/sql/alter_column_type.sql | 27 ++++-------------- 3 files changed, 33 insertions(+), 54 deletions(-)
