Fixed RESQL test cases for PG14.

This commit is contained in:
Yogesh Mahajan 2022-03-29 14:56:45 +05:30 committed by Akshay Joshi
parent 0957670d4e
commit 02e799c917
4 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ GROUP BY g.rolname, gt.rolname, a.deftype
ORDER BY a.deftype
)
{% else %}
SELECT * from (
(SELECT
CASE (e.deftype)
WHEN 'r' THEN 'deftblacl'
@ -157,5 +157,5 @@ FROM(
LEFT JOIN pg_catalog.pg_roles g ON (e.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (e.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname, e.deftype
ORDER BY e.deftype)
ORDER BY e.deftype)) f order by f.acltype DESC
{% endif %}

View File

@ -13,9 +13,9 @@ CREATE DATABASE <TEST_DB_NAME>
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON TABLES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON SEQUENCES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres
GRANT SELECT, USAGE ON SEQUENCES TO PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON SEQUENCES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;

View File

@ -13,11 +13,11 @@ CREATE DATABASE <TEST_DB_NAME>
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON TABLES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON SEQUENCES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres
GRANT SELECT, USAGE ON SEQUENCES TO PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE ALL ON SEQUENCES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres REVOKE USAGE ON TYPES FROM PUBLIC;

View File

@ -11,9 +11,9 @@ CREATE DATABASE <TEST_DB_NAME>
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
ALTER DEFAULT PRIVILEGES FOR ROLE enterprisedb REVOKE ALL ON TABLES FROM enterprisedb;
ALTER DEFAULT PRIVILEGES FOR ROLE enterprisedb
GRANT SELECT ON TABLES TO PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE enterprisedb REVOKE ALL ON TABLES FROM enterprisedb;
ALTER DEFAULT PRIVILEGES FOR ROLE enterprisedb REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;