pgsql: Introduce ATT_PARTITIONED_TABLE in tablecmds.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Introduce ATT_PARTITIONED_TABLE in tablecmds.c
Date: 2024-09-19 03:23:08
Message-ID: E1sr7l6-001jGB-JP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Introduce ATT_PARTITIONED_TABLE in tablecmds.c

Partitioned tables and normal tables have been relying on ATT_TABLE in
ATSimplePermissions() to produce error messages that depend on the
relation's relkind, because both relkinds currently support the same set
of ALTER TABLE subcommands.

A patch to restrict SET LOGGED/UNLOGGED for partitioned tables is under
discussion, and introducing ATT_PARTITIONED_TABLE makes subcommand
restrictions for partitioned tables easier to deal with, so let's add
one. There is no functional change.

Author: Michael Paquier
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/Zt6cDnwSvnuLLnak@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d69a3f4d70b7cab328ba5d0944450d87f39c2eb4

Modified Files
--------------
src/backend/commands/tablecmds.c | 141 ++++++++++++++++++++++++++-------------
1 file changed, 96 insertions(+), 45 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-09-19 06:39:18 pgsql: psql: Clean up more aggressively state of \bind[_named], \parse
Previous Message David Rowley 2024-09-19 03:21:07 pgsql: Optimize tuplestore usage for WITH RECURSIVE CTEs