Revert "CDB_Federated_Server_Unregister: Drop owned in cascade"

This reverts commit 1b86517007.
This commit is contained in:
Raúl Marín 2019-11-14 18:46:02 +01:00
parent e69d3b1c30
commit 0893fae025

View File

@ -309,7 +309,7 @@ BEGIN
SET client_min_messages = ERROR;
BEGIN
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);
EXCEPTION WHEN OTHERS THEN
RAISE EXCEPTION 'Not enough permissions to drop the server "%"', server;