]> granicus.if.org Git - postgresql/commit
Allow ALTER TABLE ONLY on partitioned tables
authorStephen Frost <sfrost@snowman.net>
Tue, 25 Apr 2017 20:57:43 +0000 (16:57 -0400)
committerStephen Frost <sfrost@snowman.net>
Tue, 25 Apr 2017 20:57:43 +0000 (16:57 -0400)
commit9139aa19423b736470f669e566f8ef6a7f19b801
tree26fb1621d5062fc9fae965b59e657c8d6747a3cc
parent5f2b48d1dd17156c2021f9fa7c85d5c550bc2c6a
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
doc/src/sgml/ddl.sgml
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/truncate.out
src/test/regress/sql/alter_table.sql
src/test/regress/sql/truncate.sql