+ else if (obj1->objType == DO_DEFAULT_ACL)
+ {
+ DefaultACLInfo *daclobj1 = *(DefaultACLInfo *const *) p1;
+ DefaultACLInfo *daclobj2 = *(DefaultACLInfo *const *) p2;
+
+ /*
+ * Sort by defaclrole, per pg_default_acl_role_nsp_obj_index. The
+ * (namespace, name) match (defaclnamespace, defaclobjtype).
+ */
+ cmpval = strcmp(daclobj1->defaclrole, daclobj2->defaclrole);
+ if (cmpval != 0)
+ return cmpval;
+ }
else if (obj1->objType == DO_PUBLICATION_REL)
{
PublicationRelInfo *probj1 = *(PublicationRelInfo *const *) p1;
else if (obj1->objType == DO_PUBLICATION_REL)
{
PublicationRelInfo *probj1 = *(PublicationRelInfo *const *) p1;
DROP USER regress_priv_user7;
DROP USER regress_priv_user8; -- does not exist
ERROR: role "regress_priv_user8" does not exist
DROP USER regress_priv_user7;
DROP USER regress_priv_user8; -- does not exist
ERROR: role "regress_priv_user8" does not exist
+-- leave some default ACLs for pg_upgrade's dump-restore test input.
+ALTER DEFAULT PRIVILEGES FOR ROLE pg_signal_backend
+ REVOKE INSERT ON TABLES FROM pg_signal_backend;
+ALTER DEFAULT PRIVILEGES FOR ROLE pg_read_all_settings
+ REVOKE INSERT ON TABLES FROM pg_read_all_settings;
-- permissions with LOCK TABLE
CREATE USER regress_locktable_user;
CREATE TABLE lock_table (a int);
-- permissions with LOCK TABLE
CREATE USER regress_locktable_user;
CREATE TABLE lock_table (a int);
DROP USER regress_priv_user8; -- does not exist
DROP USER regress_priv_user8; -- does not exist
+-- leave some default ACLs for pg_upgrade's dump-restore test input.
+ALTER DEFAULT PRIVILEGES FOR ROLE pg_signal_backend
+ REVOKE INSERT ON TABLES FROM pg_signal_backend;
+ALTER DEFAULT PRIVILEGES FOR ROLE pg_read_all_settings
+ REVOKE INSERT ON TABLES FROM pg_read_all_settings;
+
+
-- permissions with LOCK TABLE
CREATE USER regress_locktable_user;
CREATE TABLE lock_table (a int);
-- permissions with LOCK TABLE
CREATE USER regress_locktable_user;
CREATE TABLE lock_table (a int);