mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-15 20:20:20 +02:00
181bdb90ba
Backpatch to all supported versions, where applicable, to make backpatching of future fixes go more smoothly. Josh Soref Discussion: https://www.postgresql.org/message-id/CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com
11 lines
364 B
SQL
11 lines
364 B
SQL
-- Test initial privileges
|
|
|
|
-- There should always be some initial privileges, set up by initdb
|
|
SELECT count(*) > 0 FROM pg_init_privs;
|
|
|
|
-- Intentionally include some non-initial privs for pg_dump to dump out
|
|
GRANT SELECT ON pg_proc TO CURRENT_USER;
|
|
GRANT SELECT (prosrc) ON pg_proc TO CURRENT_USER;
|
|
|
|
GRANT SELECT (rolname, rolsuper) ON pg_authid TO CURRENT_USER;
|