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 <[email protected]> Reviewed-by: Amit Langote <[email protected]> Reviewed-by: Andres Freund <[email protected]> Security: CVE-2026-6460 Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0cba228497024010a9659da7a70c4780f3b05f65 Author: Heikki Linnakangas <[email protected]> Modified Files -------------- src/backend/commands/tablecmds.c | 200 +++++++++++++++++++----- src/test/regress/expected/alter_column_type.out | 36 ++--- src/test/regress/expected/generated.out | 18 +++ src/test/regress/sql/alter_column_type.sql | 22 ++- src/test/regress/sql/generated.sql | 18 +++ 5 files changed, 222 insertions(+), 72 deletions(-)
