Skip to content

Commit ec38d14

Browse files
committed
test
1 parent da224db commit ec38d14

File tree

1 file changed

+4
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+4
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ declare
172172
);
173173
relations jsonb[] := (
174174
select coalesce(array_agg(jsonb_build_object('oid', c.oid, 'owner', a.rolname, 'acl', c.relacl::text)), '{}')
175-
from pg_class c
175+
from (
176+
-- Sequences must appear after tables, so we order by relkind
177+
select * from pg_class order by relkind desc
178+
) c
176179
join pg_namespace n on n.oid = c.relnamespace
177180
join pg_authid a on a.oid = c.relowner
178181
where true

0 commit comments

Comments
 (0)