Add ALTER TABLESPACE ... MOVE command
authorStephen Frost <sfrost@snowman.net>
Sat, 18 Jan 2014 23:56:40 +0000 (18:56 -0500)
committerStephen Frost <sfrost@snowman.net>
Sat, 18 Jan 2014 23:56:40 +0000 (18:56 -0500)
commit76e91b38ba64e1da70ea21744b342cb105ea3400
treebc485da708d31d5484d5a3de6489cf73684a9640
parent6f25c62d788ea6312fe718ed57a3d169d8efc066
Add ALTER TABLESPACE ... MOVE command

This adds a 'MOVE' sub-command to ALTER TABLESPACE which allows moving sets of
objects from one tablespace to another.  This can be extremely handy and avoids
a lot of error-prone scripting.  ALTER TABLESPACE ... MOVE will only move
objects the user owns, will notify the user if no objects were found, and can
be used to move ALL objects or specific types of objects (TABLES, INDEXES, or
MATERIALIZED VIEWS).
13 files changed:
doc/src/sgml/ref/alter_tablespace.sgml
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/tablespace.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/include/parser/kwlist.h
src/test/regress/input/tablespace.source
src/test/regress/output/tablespace.source
src/tools/pgindent/typedefs.list