From fbe19ee3b87590f1006d072be5fecf8a33d4e9f5 Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Thu, 23 Jan 2014 23:52:40 -0500 Subject: 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. --- src/backend/commands/user.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backend/commands/user.c') 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; -- cgit v1.2.3