Created
January 3, 2017 22:44
-
-
Save kerbelp/67af23d5abc5700788fb08b613b71a68 to your computer and use it in GitHub Desktop.
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
CREATE OR REPLACE VIEW admin.v_users_groups | |
AS | |
SELECT pg_group.groname as group_name, | |
pg_user.usename as user_name, | |
pg_user.usesuper as is_superuser | |
FROM pg_group, | |
pg_user | |
WHERE pg_user.usesysid = ANY (pg_group.grolist); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment