Skip to content

Commit

Permalink
Add pg_authid view
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Feb 5, 2024
1 parent 9e737bc commit 92e106e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .unreleased/pg_6600
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implements: #6600 Add timescaledb_information.pg_authid to access non-superuser passwords
5 changes: 5 additions & 0 deletions sql/views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,9 @@ WHERE
'MEMBER') IS TRUE
OR pg_catalog.pg_has_role(current_user, owner, 'MEMBER') IS TRUE;

-- View for viewing non-superuser passwords
CREATE OR REPLACE VIEW timescaledb_information.pg_authid
WITH (security_barrier = true) AS
SELECT * FROM pg_catalog.pg_authid WHERE rolsuper = 'false';

GRANT SELECT ON ALL TABLES IN SCHEMA timescaledb_information TO PUBLIC;

0 comments on commit 92e106e

Please sign in to comment.