Skip to content

Commit 748d30f

Browse files
committed
Merge branch '124-functions-exclusion' into 'master'
fix: exclude the change of ownership for dblink functions (joe#124) Closes #124 See merge request postgres-ai/database-lab!265
2 parents 94999be + ef0184c commit 748d30f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/services/provision/databases/postgres/postgres_mgmt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ begin
160160
from pg_catalog.pg_namespace as n
161161
join pg_catalog.pg_proc as p on p.pronamespace = n.oid
162162
where not n.nspname in ('pg_catalog', 'information_schema')
163+
and p.proname not ilike 'dblink%%' -- We do not want dblink to be involved (exclusion)
163164
loop
164165
raise debug 'Changing ownership of function %%.%%(%%) to %%',
165166
r.nspname, r.proname, r.args, new_owner;

0 commit comments

Comments
 (0)