summaryrefslogtreecommitdiffstats
path: root/src/test/regress/sql/init_privs.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/regress/sql/init_privs.sql')
-rw-r--r--src/test/regress/sql/init_privs.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/regress/sql/init_privs.sql b/src/test/regress/sql/init_privs.sql
new file mode 100644
index 0000000..4a31af2
--- /dev/null
+++ b/src/test/regress/sql/init_privs.sql
@@ -0,0 +1,10 @@
+-- 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;