pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Check relation dependencies more carefully
Date: Mon, 09 Nov 2026 14:22:00 +0000
Message-ID: <E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org> (raw)

Check relation dependencies more carefully

Similar to previous commits, if a relation depends on a composite
type, we need to inspect it more carefully.  We already checked tables
using the composite type in columns, but the dependency might also
exist because a partitioned table's PARTITION BY expression uses the
type, or an expression in an expression or partial index.

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

Modified Files
--------------
src/backend/commands/tablecmds.c                | 200 +++++++++++++++++++-----
src/test/regress/expected/alter_column_type.out |  36 ++---
src/test/regress/expected/generated_stored.out  |   7 +
src/test/regress/expected/generated_virtual.out |   7 +
src/test/regress/sql/alter_column_type.sql      |  22 ++-
src/test/regress/sql/generated_stored.sql       |   7 +
src/test/regress/sql/generated_virtual.sql      |   7 +
7 files changed, 214 insertions(+), 72 deletions(-)



view thread (3+ messages)

Message-ID: <E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org>
Permalink:  ../E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Check relation dependencies more carefully
  In-Reply-To: <E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org>
  References: <E1xQQG0-000000003fu-0HTY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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