pgsql: Forbid changing type if the rowtype is used in a foreign table

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Forbid changing type if the rowtype is used in a foreign table
Date: 2026-11-09 14:22:15
Message-ID: E1xQQGF-000000004FC-39eg@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Forbid changing type if the rowtype is used in a foreign table

Because the foreign table's statistics could have datums in the old
format.

For all reporters and public discussions, see previous commits.

Co-authored-by: Nikhil Sontakke <nikhil(at)planetscale(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_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f3cef207b9d1293a964610108964eb99c322ba68
Author: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>

Modified Files
--------------
src/backend/commands/tablecmds.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-11-09 14:22:16 pgsql: Close portals at end of trigger functions with transition tables
Previous Message Noah Misch 2026-11-09 14:22:14 pgsql: Avoid out-of-bounds accesses in FDW batch inserts.