pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Skip bogus find_composite_type_dependencies() call on sequences
Date: Thu, 20 Aug 2026 08:56:09 +0000
Message-ID: <E1wwyZE-00000001LEl-2lpC@gemulon.postgresql.org> (raw)

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_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/25251bb27fad53075b94556dabc486fc8de84ba4

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



view thread (6+ messages)  latest in thread

Message-ID: <E1wwyZE-00000001LEl-2lpC@gemulon.postgresql.org>
Permalink:  ../E1wwyZE-00000001LEl-2lpC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wwyZE-00000001LEl-2lpC@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Skip bogus find_composite_type_dependencies() call on sequences
  In-Reply-To: <E1wwyZE-00000001LEl-2lpC@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