pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Check for Consts in constraint definitions 2+ messages / 1 participants [nested] [flat]
* pgsql: Check for Consts in constraint definitions @ 2026-11-09 14:21 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <nathandbossart@gmail.com> Reviewed-by: Amit Langote <amitlangote09@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Security: CVE-2026-6460 Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1ff5607e95fbe16947e4e3c9bed204aece962c81 Author: Heikki Linnakangas <heikki.linnakangas@iki.fi> 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Check for Consts in constraint definitions @ 2026-11-09 14:21 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <nathandbossart@gmail.com> Reviewed-by: Amit Langote <amitlangote09@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Security: CVE-2026-6460 Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1fa8ddab44b1efd620cdd07dca9a4eae09da58dc Author: Heikki Linnakangas <heikki.linnakangas@iki.fi> 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-11-09 14:21 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-09 14:21 pgsql: Check for Consts in constraint definitions Noah Misch <noah@leadboat.com> 2026-11-09 14:21 pgsql: Check for Consts in constraint definitions Noah Misch <noah@leadboat.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox