Skip to content

Commit bb122a4

Browse files
authored
Merge pull request #40 from vgeshel/patch-1
Use pg_roles instead of pg_authid
2 parents c9c8905 + 5f6d07d commit bb122a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

owner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SELECT n.nspname AS schema_name
3232
WHEN c.relkind = 'v' THEN 'VIEW'
3333
ELSE c.relkind::varchar END AS type
3434
FROM pg_class AS c
35-
INNER JOIN pg_authid AS a ON (a.oid = c.relowner)
35+
INNER JOIN pg_roles AS a ON (a.oid = c.relowner)
3636
INNER JOIN pg_namespace AS n ON (n.oid = c.relnamespace)
3737
WHERE c.relkind IN ('r', 'S', 'v')
3838
{{if eq $.DbSchema "*" }}

0 commit comments

Comments
 (0)