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

Поиск
Список
Период
Сортировка
Искать

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

От:
Noah Misch <noah@leadboat.com>
Дата:
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 
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bfcb6625eaae6956cd8cb9c06745ea342c253ac5
Author: Heikki Linnakangas 

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(-)

FAQ