Revert "CDB_Federated_Server_Unregister: Drop owned in cascade"
This reverts commit 1b86517007.
This commit is contained in:
@@ -309,7 +309,7 @@ BEGIN
|
|||||||
SET client_min_messages = ERROR;
|
SET client_min_messages = ERROR;
|
||||||
BEGIN
|
BEGIN
|
||||||
EXECUTE FORMAT ('DROP USER MAPPING FOR PUBLIC SERVER %I', server_internal);
|
EXECUTE FORMAT ('DROP USER MAPPING FOR PUBLIC SERVER %I', server_internal);
|
||||||
EXECUTE FORMAT ('DROP OWNED BY %I CASCADE', role_name);
|
EXECUTE FORMAT ('DROP OWNED BY %I', role_name);
|
||||||
EXECUTE FORMAT ('DROP ROLE %I', role_name);
|
EXECUTE FORMAT ('DROP ROLE %I', role_name);
|
||||||
EXCEPTION WHEN OTHERS THEN
|
EXCEPTION WHEN OTHERS THEN
|
||||||
RAISE EXCEPTION 'Not enough permissions to drop the server "%"', server;
|
RAISE EXCEPTION 'Not enough permissions to drop the server "%"', server;
|
||||||
|
|||||||
Reference in New Issue
Block a user