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: Allow SET LOGGED/UNLOGGED and changing AM when the rowtype is in
Date: Mon, 09 Nov 2026 14:21:54 +0000
Message-ID: <E1xQQFu-000000003UK-2YE8@gemulon.postgresql.org> (raw)

Allow SET LOGGED/UNLOGGED and changing AM when the rowtype is in use

Those commands rewrite the table, but they don't affect other tables
or Consts using the rowtype.

The reason to do this now is that the next commits will tighten up the
dependency checking to reject more cases.  After those commits, we
would also unnecessarily reject SET LOGGED/UNLOGGED in more cases, so
it seems nice to eliminate the unnecessary checks first.  That's also
why this is backpatched.

Co-authored-by: Nathan Bossart <nathandbossart@gmail.com>
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/31114b99605524f21a32c4047582449864252ae1
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>

Modified Files
--------------
src/backend/commands/tablecmds.c          |  4 +++-
src/test/regress/expected/alter_table.out | 23 +++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 22 ++++++++++++++++++++++
3 files changed, 48 insertions(+), 1 deletion(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1xQQFu-000000003UK-2YE8@gemulon.postgresql.org>
Permalink:  ../E1xQQFu-000000003UK-2YE8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQFu-000000003UK-2YE8@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: Allow SET LOGGED/UNLOGGED and changing AM when the rowtype is in
  In-Reply-To: <E1xQQFu-000000003UK-2YE8@gemulon.postgresql.org>
  References: <E1xQQFu-000000003UK-2YE8@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