Skip to content

Commit

Permalink
fix: pg_upgrade_script (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc authored Nov 21, 2024
1 parent bf452e4 commit 3bc1710
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ begin
loop
if obj->>'owner' = 'postgres' then
execute(format('alter %s %s(%s) owner to postgres;'
, case when obj->>'kind' = 'p' then 'procedure' else 'function'
, case when obj->>'kind' = 'p' then 'procedure' else 'function' end
, (obj->>'oid')::regproc
, pg_get_function_identity_arguments((obj->>'oid')::regproc)));
end if;
Expand Down

0 comments on commit 3bc1710

Please sign in to comment.