We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da08e35 commit f18d9a3Copy full SHA for f18d9a3
ansible/files/postgresql_extension_custom_scripts/postgres_fdw/after-create.sql
@@ -10,12 +10,14 @@ begin
10
11
-- Need to be superuser to own FDWs, so we temporarily make postgres superuser.
12
if not is_super then
13
+ set session_replication_role = replica;
14
alter role postgres superuser;
15
end if;
16
17
alter foreign data wrapper postgres_fdw owner to postgres;
18
19
20
alter role postgres nosuperuser;
21
+ reset session_replication_role;
22
23
end $$;
0 commit comments