]> 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:12:00 +0000 (19:12 -0400)
commitd9b2bc45cf75f913490f1b3ce9b9263509b26704
tree5245060be317d1a40da7398838b8e9bc5dd7751c
parent9243417801be3f1cfaa3a3c33d5a003f382bd7a4
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