| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Skip bogus find_composite_type_dependencies() call on sequences |
| Date: | 2026-08-20 08:56:09 |
| Message-ID: | E1wwyZE-00000001LEn-2r0z@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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_16_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/70fc6c4b28dff8c3b1ff06c3b3509622b9d97764
Modified Files
--------------
src/backend/commands/tablecmds.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2026-08-20 12:52:36 | Re: typo in postgres-fdw.sgml - Re: pgsql: postgres_fdw: push down FUNCTION RTE into foreign joins |
| Previous Message | Amit Langote | 2026-08-20 08:22:32 | pgsql: Track RI fast-path FK-check batches per firing cycle |