aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/user.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2014-01-23 23:52:40 -0500
committerStephen Frost <sfrost@snowman.net>2014-01-23 23:52:40 -0500
commitfbe19ee3b87590f1006d072be5fecf8a33d4e9f5 (patch)
tree1e4a87ee5af49862e84d372d1ad29f278ca5648a /src/backend/commands/user.c
parent3ee74df2e48cde3c471637d14b18475abb0eb69a (diff)
downloadpostgresql-fbe19ee3b87590f1006d072be5fecf8a33d4e9f5.tar.gz
postgresql-fbe19ee3b87590f1006d072be5fecf8a33d4e9f5.zip
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.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r--src/backend/commands/user.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index f8cf2a1b462..bcdc392a817 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -48,7 +48,6 @@ extern bool Password_encryption;
/* Hook to check passwords in CreateRole() and AlterRole() */
check_password_hook_type check_password_hook = NULL;
-static List *roleNamesToIds(List *memberNames);
static void AddRoleMems(const char *rolename, Oid roleid,
List *memberNames, List *memberIds,
Oid grantorId, bool admin_opt);
@@ -1302,7 +1301,7 @@ ReassignOwnedObjects(ReassignOwnedStmt *stmt)
* Given a list of role names (as String nodes), generate a list of role OIDs
* in the same order.
*/
-static List *
+List *
roleNamesToIds(List *memberNames)
{
List *result = NIL;