-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: pgmq ownership * tmp * bump version for production release --------- Co-authored-by: Oliver Rice <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
ansible/files/postgresql_extension_custom_scripts/pgmq/after-create.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
do $$ | ||
declare | ||
extoid oid := (select oid from pg_extension where extname = 'pgmq'); | ||
r record; | ||
begin | ||
set local search_path = ''; | ||
update pg_extension set extowner = 'postgres'::regrole where extname = 'pgmq'; | ||
for r in (select * from pg_depend where refobjid = extoid) loop | ||
if r.classid = 'pg_type'::regclass then | ||
execute(format('alter type %s owner to postgres;', r.objid::regtype)); | ||
elsif r.classid = 'pg_proc'::regclass then | ||
execute(format('alter function %s(%s) owner to postgres;', r.objid::regproc, pg_get_function_identity_arguments(r.objid))); | ||
elsif r.classid = 'pg_class'::regclass then | ||
execute(format('alter table %s owner to postgres;', r.objid::regclass)); | ||
else | ||
raise exception 'error on pgmq after-create script: unexpected object type %', r.classid; | ||
end if; | ||
end loop; | ||
end $$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
postgres-version = "15.6.1.145" | ||
postgres-version = "15.6.1.146" |