Remove TODO
Since the server registration requires superadmin priviledges it doesn't make sense to over protect the role creation
This commit is contained in:
parent
fa5f0bcbc1
commit
e99e4a02c9
@ -238,10 +238,6 @@ BEGIN
|
|||||||
IF NOT EXISTS (SELECT * FROM pg_foreign_server WHERE srvname = server_internal) THEN
|
IF NOT EXISTS (SELECT * FROM pg_foreign_server WHERE srvname = server_internal) THEN
|
||||||
BEGIN
|
BEGIN
|
||||||
EXECUTE FORMAT('CREATE SERVER %I FOREIGN DATA WRAPPER postgres_fdw', server_internal);
|
EXECUTE FORMAT('CREATE SERVER %I FOREIGN DATA WRAPPER postgres_fdw', server_internal);
|
||||||
-- TODO: Delete this IF before merging to make sure nobody creates a role
|
|
||||||
-- that is later used automatically by us granting them all permissions in the foreign server
|
|
||||||
-- TODO: This is here to help debugging during development (so failures to destroy objects are allowed)
|
|
||||||
-- TODO
|
|
||||||
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = role_name) THEN
|
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = role_name) THEN
|
||||||
EXECUTE FORMAT('CREATE ROLE %I NOLOGIN', role_name);
|
EXECUTE FORMAT('CREATE ROLE %I NOLOGIN', role_name);
|
||||||
END IF;
|
END IF;
|
||||||
|
Loading…
Reference in New Issue
Block a user