Skip to content

Commit 47dd11b

Browse files
committed
rename pgsql to postgres in regression.
1 parent e236235 commit 47dd11b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/regress/sql/view_perms.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ CREATE VIEW viewperms_v7 AS SELECT * FROM viewperms_v2;
5454
-- v2 pgslq
5555
-- v3 tuser
5656
-- v4 tuser
57-
-- v5 pgsql
58-
-- v6 pgsql
57+
-- v5 postgres
58+
-- v6 postgres
5959
-- v7 tuser
6060
--
6161
UPDATE pg_class SET relowner = viewperms_testid()
@@ -71,31 +71,31 @@ UPDATE pg_class SET relowner = viewperms_testid()
7171
-- Now for the tests.
7272
--
7373

74-
-- View v1 owner pgsql has access to t1 owned by tuser
74+
-- View v1 owner postgres has access to t1 owned by tuser
7575
SELECT * FROM viewperms_v1;
7676

77-
-- View v2 owner pgsql has access to t2 owned by pgsql (of cause)
77+
-- View v2 owner postgres has access to t2 owned by postgres (of cause)
7878
SELECT * FROM viewperms_v2;
7979

8080
-- View v3 owner tuser has access to t1 owned by tuser
8181
SELECT * FROM viewperms_v3;
8282

83-
-- View v4 owner tuser has NO access to t2 owned by pgsql
83+
-- View v4 owner tuser has NO access to t2 owned by postgres
8484
-- MUST fail with permission denied
8585
SELECT * FROM viewperms_v4;
8686

87-
-- v5 (pgsql) can access v2 (pgsql) can access t1 (tuser)
87+
-- v5 (postgres) can access v2 (postgres) can access t1 (tuser)
8888
SELECT * FROM viewperms_v5;
8989

90-
-- v6 (pgsql) can access v4 (tuser) CANNOT access t2 (pgsql)
90+
-- v6 (postgres) can access v4 (tuser) CANNOT access t2 (postgres)
9191
SELECT * FROM viewperms_v6;
9292

93-
-- v7 (tuser) CANNOT access v2 (pgsql) wanna access t2 (pgslq)
93+
-- v7 (tuser) CANNOT access v2 (postgres) wanna access t2 (pgslq)
9494
SELECT * FROM viewperms_v7;
9595

9696
GRANT SELECT ON viewperms_v2 TO PUBLIC;
9797
-- but now
98-
-- v7 (tuser) can access v2 (pgsql via grant) can access t2 (pgsql)
98+
-- v7 (tuser) can access v2 (postgres via grant) can access t2 (postgres)
9999
SELECT * FROM viewperms_v7;
100100

101101
--

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