pgsql: ALTER TABLESPACE ... MOVE ... OWNED BY

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: ALTER TABLESPACE ... MOVE ... OWNED BY
Date: 2014-01-24 04:56:54
Message-ID: E1W6Yp4-0007i1-79@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fbe19ee3b87590f1006d072be5fecf8a33d4e9f5

Modified Files
--------------
doc/src/sgml/ref/alter_tablespace.sgml | 35 +++++++++++++-----
src/backend/commands/tablespace.c | 29 +++++++++++----
src/backend/commands/user.c | 3 +-
src/backend/nodes/copyfuncs.c | 3 ++
src/backend/nodes/equalfuncs.c | 3 ++
src/backend/parser/gram.y | 63 +++++++++++++++++++++++++++++---
src/include/commands/user.h | 1 +
src/include/nodes/parsenodes.h | 5 ++-
8 files changed, 115 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-01-24 08:49:10 pgsql: In GIN recompression code, use mmemove rather than memcpy, for v
Previous Message Fujii Masao 2014-01-24 02:21:33 pgsql: Remove duplicate index entry DATE_TRUNC in document.