pgsql: Skip bogus find_composite_type_dependencies() call on sequences - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Skip bogus find_composite_type_dependencies() call on sequences
Date
Msg-id E1wwyZE-00000001LEh-2cR6@gemulon.postgresql.org
Whole thread
List pgsql-committers
Skip bogus find_composite_type_dependencies() call on sequences

A sequence has no rowtype.  We called
find_composite_type_dependencies() with InvalidOid, which is harmless
but pointless.  Skip it.

This started to happen with commit 344d62fb9a97 in v15, which added
the ALTER SEQUENCE ... SET LOGGED/UNLOGGED subcommand.  Before that,
sequences were never rewritten.  While this is harmless, backpatch to
keep the code the same on all branches, to make backpatching future
patches a little easier.

Backpatch-through: 15

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d85a2590075fe652739a18be6f4bf0047a433218

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


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Reject too many arguments in CREATE TRIGGER
Next
From: Tom Lane
Date:
Subject: pgsql: Rewrite tsqueryout() to use StringInfo to build the output strin