From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce ATT_PARTITIONED_TABLE in tablecmds.c
Date: Thu, 19 Sep 2024 03:23:08 +0000
Message-ID: <E1sr7l6-001jGB-JP@gemulon.postgresql.org> (raw)
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(-)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Introduce ATT_PARTITIONED_TABLE in tablecmds.c
In-Reply-To: <E1sr7l6-001jGB-JP@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