rename pgsql to postgres in regression.

This commit is contained in:
Bruce Momjian 1999-02-22 02:08:32 +00:00
parent e23623584f
commit 47dd11bdd0
1 changed files with 9 additions and 9 deletions

View File

@ -54,8 +54,8 @@ CREATE VIEW viewperms_v7 AS SELECT * FROM viewperms_v2;
-- v2 pgslq -- v2 pgslq
-- v3 tuser -- v3 tuser
-- v4 tuser -- v4 tuser
-- v5 pgsql -- v5 postgres
-- v6 pgsql -- v6 postgres
-- v7 tuser -- v7 tuser
-- --
UPDATE pg_class SET relowner = viewperms_testid() UPDATE pg_class SET relowner = viewperms_testid()
@ -71,31 +71,31 @@ UPDATE pg_class SET relowner = viewperms_testid()
-- Now for the tests. -- Now for the tests.
-- --
-- View v1 owner pgsql has access to t1 owned by tuser -- View v1 owner postgres has access to t1 owned by tuser
SELECT * FROM viewperms_v1; SELECT * FROM viewperms_v1;
-- View v2 owner pgsql has access to t2 owned by pgsql (of cause) -- View v2 owner postgres has access to t2 owned by postgres (of cause)
SELECT * FROM viewperms_v2; SELECT * FROM viewperms_v2;
-- View v3 owner tuser has access to t1 owned by tuser -- View v3 owner tuser has access to t1 owned by tuser
SELECT * FROM viewperms_v3; SELECT * FROM viewperms_v3;
-- View v4 owner tuser has NO access to t2 owned by pgsql -- View v4 owner tuser has NO access to t2 owned by postgres
-- MUST fail with permission denied -- MUST fail with permission denied
SELECT * FROM viewperms_v4; SELECT * FROM viewperms_v4;
-- v5 (pgsql) can access v2 (pgsql) can access t1 (tuser) -- v5 (postgres) can access v2 (postgres) can access t1 (tuser)
SELECT * FROM viewperms_v5; SELECT * FROM viewperms_v5;
-- v6 (pgsql) can access v4 (tuser) CANNOT access t2 (pgsql) -- v6 (postgres) can access v4 (tuser) CANNOT access t2 (postgres)
SELECT * FROM viewperms_v6; SELECT * FROM viewperms_v6;
-- v7 (tuser) CANNOT access v2 (pgsql) wanna access t2 (pgslq) -- v7 (tuser) CANNOT access v2 (postgres) wanna access t2 (pgslq)
SELECT * FROM viewperms_v7; SELECT * FROM viewperms_v7;
GRANT SELECT ON viewperms_v2 TO PUBLIC; GRANT SELECT ON viewperms_v2 TO PUBLIC;
-- but now -- but now
-- v7 (tuser) can access v2 (pgsql via grant) can access t2 (pgsql) -- v7 (tuser) can access v2 (postgres via grant) can access t2 (postgres)
SELECT * FROM viewperms_v7; SELECT * FROM viewperms_v7;
-- --