@@ -17,7 +17,7 @@ CREATE OR REPLACE FUNCTION chksetconfig()
17
17
RETURNS TABLE (db name, "role" name, rolkeyword text, setconfig text[])
18
18
AS $$
19
19
SELECT COALESCE(d.datname, 'ALL'), COALESCE(r.rolname, 'ALL'),
20
- COALESCE(v.keyword, '-'), s.setconfig
20
+ COALESCE(v.keyword, '-'), s.setconfig
21
21
FROM pg_db_role_setting s
22
22
LEFT JOIN pg_roles r ON (r.oid = s.setrole)
23
23
LEFT JOIN pg_database d ON (d.oid = s.setdatabase)
@@ -641,12 +641,12 @@ CREATE USER MAPPING FOR PUBLIC SERVER sv6 OPTIONS (user 'PUBLIC');
641
641
CREATE USER MAPPING FOR "Public" SERVER sv7 OPTIONS (user '"Public"');
642
642
CREATE USER MAPPING FOR regress_testrolx SERVER sv8 OPTIONS (user 'regress_testrolx');
643
643
CREATE USER MAPPING FOR CURRENT_ROLE SERVER sv9
644
- OPTIONS (user 'CURRENT_ROLE'); -- error
644
+ OPTIONS (user 'CURRENT_ROLE'); -- error
645
645
ERROR: syntax error at or near "CURRENT_ROLE"
646
646
LINE 1: CREATE USER MAPPING FOR CURRENT_ROLE SERVER sv9
647
647
^
648
648
CREATE USER MAPPING FOR nonexistent SERVER sv9
649
- OPTIONS (user 'nonexistent'); -- error;
649
+ OPTIONS (user 'nonexistent'); -- error;
650
650
ERROR: role "nonexistent" does not exist
651
651
SELECT * FROM chkumapping();
652
652
umname | umserver | umoptions
@@ -860,7 +860,7 @@ GRANT ALL PRIVILEGES ON FUNCTION testagg5(int2) TO "Public";
860
860
GRANT ALL PRIVILEGES ON FUNCTION testagg6(int2) TO regress_testrolx;
861
861
GRANT ALL PRIVILEGES ON FUNCTION testagg7(int2) TO "public";
862
862
GRANT ALL PRIVILEGES ON FUNCTION testagg8(int2)
863
- TO current_user, public, regress_testrolx;
863
+ TO current_user, public, regress_testrolx;
864
864
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
865
865
proname | proacl
866
866
----------+-----------------------------------------------------------------------------------------------------------------------------------
@@ -913,7 +913,7 @@ REVOKE ALL PRIVILEGES ON FUNCTION testagg5(int2) FROM "Public";
913
913
REVOKE ALL PRIVILEGES ON FUNCTION testagg6(int2) FROM regress_testrolx;
914
914
REVOKE ALL PRIVILEGES ON FUNCTION testagg7(int2) FROM "public";
915
915
REVOKE ALL PRIVILEGES ON FUNCTION testagg8(int2)
916
- FROM current_user, public, regress_testrolx;
916
+ FROM current_user, public, regress_testrolx;
917
917
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
918
918
proname | proacl
919
919
----------+---------------------------------------
0 commit comments