mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
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.
This commit is contained in:
@@ -1691,10 +1691,11 @@ typedef struct AlterTableSpaceMoveStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *orig_tablespacename;
|
||||
ObjectType objtype; /* set to -1 if move_all is true */
|
||||
bool move_all; /* move all, or just objtype objects? */
|
||||
List *roles; /* List of roles to move objects of */
|
||||
char *new_tablespacename;
|
||||
ObjectType objtype;
|
||||
bool nowait;
|
||||
bool move_all;
|
||||
} AlterTableSpaceMoveStmt;
|
||||
|
||||
/* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user