Introduce ATT_PARTITIONED_TABLE in tablecmds.c
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +96 −45 |
Discussion
- Partitioned tables and [un]loggedness 37 messages · 2024-04-24 → 2025-06-11