Skip to content

Commit ad44124

Browse files
committed
Rewrite previous commit's test for TestUpgradeXversion compatibility.
v17 introduced the MAINTAIN ON TABLES privilege. That changed the applicable "baseacls" reaching buildACLCommands(). That yielded spurious TestUpgradeXversion diffs. Change to use a TYPES privilege. Types have the same one privilege in all supported versions, so they avoid the problem. Per buildfarm. Back-patch to v13, like that commit. Discussion: https://postgr.es/m/20250823144505.88.nmisch@google.com Backpatch-through: 13
1 parent b61a5c4 commit ad44124

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/regress/expected/privileges.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,9 +3155,9 @@ DROP USER regress_priv_user8; -- does not exist
31553155
ERROR: role "regress_priv_user8" does not exist
31563156
-- leave some default ACLs for pg_upgrade's dump-restore test input.
31573157
ALTER DEFAULT PRIVILEGES FOR ROLE pg_signal_backend
3158-
REVOKE INSERT ON TABLES FROM pg_signal_backend;
3158+
REVOKE USAGE ON TYPES FROM pg_signal_backend;
31593159
ALTER DEFAULT PRIVILEGES FOR ROLE pg_read_all_settings
3160-
REVOKE INSERT ON TABLES FROM pg_read_all_settings;
3160+
REVOKE USAGE ON TYPES FROM pg_read_all_settings;
31613161
-- permissions with LOCK TABLE
31623162
CREATE USER regress_locktable_user;
31633163
CREATE TABLE lock_table (a int);

src/test/regress/sql/privileges.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,9 +1865,9 @@ DROP USER regress_priv_user8; -- does not exist
18651865

18661866
-- leave some default ACLs for pg_upgrade's dump-restore test input.
18671867
ALTER DEFAULT PRIVILEGES FOR ROLE pg_signal_backend
1868-
REVOKE INSERT ON TABLES FROM pg_signal_backend;
1868+
REVOKE USAGE ON TYPES FROM pg_signal_backend;
18691869
ALTER DEFAULT PRIVILEGES FOR ROLE pg_read_all_settings
1870-
REVOKE INSERT ON TABLES FROM pg_read_all_settings;
1870+
REVOKE USAGE ON TYPES FROM pg_read_all_settings;
18711871

18721872

18731873
-- permissions with LOCK TABLE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy