]> granicus.if.org Git - postgresql/commit
Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE'
authorStephen Frost <sfrost@snowman.net>
Thu, 21 Aug 2014 23:06:17 +0000 (19:06 -0400)
committerStephen Frost <sfrost@snowman.net>
Thu, 21 Aug 2014 23:06:17 +0000 (19:06 -0400)
commit3c4cf080879b386d4ed1814667aca025caafe608
treeec530d19313baddf3ff3ee8aa693c5f4f0326b32
parentf57791985ac3d776cb67e9d69befde538cfdf13b
Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE'

As 'ALTER TABLESPACE .. MOVE ALL' really didn't change the tablespace
but instead changed objects inside tablespaces, it made sense to
rework the syntax and supporting functions to operate under the
'ALTER (TABLE|INDEX|MATERIALIZED VIEW)' syntax and to be in
tablecmds.c.

Pointed out by Alvaro, who also suggested the new syntax.

Back-patch to 9.4.
18 files changed:
doc/src/sgml/ref/alter_index.sgml
doc/src/sgml/ref/alter_materialized_view.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/alter_tablespace.sgml
doc/src/sgml/release-9.4.sgml
src/backend/commands/tablecmds.c
src/backend/commands/tablespace.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/commands/tablecmds.h
src/include/commands/tablespace.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/test/regress/input/tablespace.source
src/test/regress/output/tablespace.source
src/tools/pgindent/typedefs.list