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

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow SET LOGGED/UNLOGGED and changing AM when the rowtype is in
Date: 2026-11-09 14:21:59
Message-ID: E1xQQFz-000000003f9-2V6r@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/afaff70f0fbe5025169c213a696dbe5468747fa1
Author: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-11-09 14:22:00 pgsql: Enforce view row visibility for INSERT ... ON CONFLICT target ro
Previous Message Noah Misch 2026-11-09 14:21:58 pgsql: Handle composite type changes in ExecEvalFieldStore[De]Form