Skip to content

Commit e5e7a82

Browse files
fuergaosi233soedirgo
authored andcommitted
feat: change pg_authid 2 pg_roles
1 parent 630bedc commit e5e7a82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/sql/policies.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ SELECT
1515
ELSE array_to_json(
1616
ARRAY(
1717
SELECT
18-
pg_authid.rolname
18+
pg_roles.rolname
1919
FROM
20-
pg_authid
20+
pg_roles
2121
WHERE
22-
pg_authid.oid = ANY (pol.polroles)
22+
pg_roles.oid = ANY (pol.polroles)
2323
ORDER BY
24-
pg_authid.rolname
24+
pg_roles.rolname
2525
)
2626
)
2727
END AS roles,

src/lib/sql/schemas.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SELECT
66
u.rolname AS owner
77
FROM
88
pg_namespace n,
9-
pg_authid u
9+
pg_roles u
1010
WHERE
1111
n.nspowner = u.oid
1212
AND (

0 commit comments

Comments
 (0)