ALTER TABLESPACE ... MOVE ... OWNED BY
authorStephen Frost <sfrost@snowman.net>
Fri, 24 Jan 2014 04:52:40 +0000 (23:52 -0500)
committerStephen Frost <sfrost@snowman.net>
Fri, 24 Jan 2014 04:52:40 +0000 (23:52 -0500)
commitfbe19ee3b87590f1006d072be5fecf8a33d4e9f5
tree1e4a87ee5af49862e84d372d1ad29f278ca5648a
parent3ee74df2e48cde3c471637d14b18475abb0eb69a
ALTER TABLESPACE ... MOVE ... OWNED BY

Add the ability to specify the objects to move by who those objects are
owned by (as relowner) and change ALL to mean ALL objects.  This
makes the command always operate against a well-defined set of objects
and not have the objects-to-be-moved based on the role of the user
running the command.

Per discussion with Simon and Tom.
doc/src/sgml/ref/alter_tablespace.sgml
src/backend/commands/tablespace.c
src/backend/commands/user.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/include/commands/user.h
src/include/nodes/parsenodes.h