From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Allow ALTER TABLE ONLY on partitioned tables |
Date: | 2017-04-25 20:58:06 |
Message-ID: | E1d37XC-0003pQ-AK@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Allow ALTER TABLE ONLY on partitioned tables
There is no need to forbid ALTER TABLE ONLY on partitioned tables,
when no partitions exist yet. This can be handy for users who are
building up their partitioned table independently and will create actual
partitions later.
In addition, this is how pg_dump likes to operate in certain instances.
Author: Amit Langote, with some error message word-smithing by me
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9139aa19423b736470f669e566f8ef6a7f19b801
Modified Files
--------------
doc/src/sgml/ddl.sgml | 18 ++++++---
src/backend/commands/tablecmds.c | 66 +++++++++++++++++++------------
src/test/regress/expected/alter_table.out | 36 +++++++++++------
src/test/regress/expected/truncate.out | 8 ++++
src/test/regress/sql/alter_table.sql | 24 ++++++++---
src/test/regress/sql/truncate.sql | 4 ++
6 files changed, 108 insertions(+), 48 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2017-04-26 10:33:36 | pgsql: doc PG10: add Rafia Sabih to parallel index scan item |
Previous Message | Bruce Momjian | 2017-04-25 19:30:55 | pgsql: doc PG10: update EXPLAIN SUMMARY item |