| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Check for Consts in domain DEFAULTs |
| Date: | 2026-11-09 14:22:00 |
| Message-ID: | E1xQQG0-000000003fp-049t@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Amit Langote <amitlangote09(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Security: CVE-2026-6460
Backpatch-through: 14
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/05fc87f95346caedca5a9e7ee59293a77f0e60c0
Author: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2026-11-09 14:22:01 | pgsql: Introduce attribute versioning to prevent unsafe deforming |
| Previous Message | Noah Misch | 2026-11-09 14:21:59 | pgsql: Reject pseudo-types in extended statistics expressions. |