pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Check for Consts in domain DEFAULTs
3+ messages / 1 participants
[nested] [flat]

* pgsql: Check for Consts in domain DEFAULTs
@ 2026-11-09 14:21 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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 <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/3a98781ba12c6e527b9e47c660f54b9e4565168d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Check for Consts in domain DEFAULTs
@ 2026-11-09 14:21 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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 <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/dd097cae9f8395b84d389a8249984ef8052a1f23
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Check for Consts in domain DEFAULTs
@ 2026-11-09 14:22 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:22 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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 <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_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/05fc87f95346caedca5a9e7ee59293a77f0e60c0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2026-11-09 14:22 UTC | newest]

Thread overview: 3+ 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 domain DEFAULTs Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: Check for Consts in domain DEFAULTs Noah Misch <noah@leadboat.com>
2026-11-09 14:22 pgsql: Check for Consts in domain DEFAULTs 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