Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
47dd11bd
Commit
47dd11bd
authored
Feb 22, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename pgsql to postgres in regression.
parent
e2362358
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/test/regress/sql/view_perms.sql
src/test/regress/sql/view_perms.sql
+9
-9
No files found.
src/test/regress/sql/view_perms.sql
View file @
47dd11bd
...
...
@@ -54,8 +54,8 @@ CREATE VIEW viewperms_v7 AS SELECT * FROM viewperms_v2;
-- v2 pgslq
-- v3 tuser
-- v4 tuser
-- v5 p
gsql
-- v6 p
gsql
-- v5 p
ostgres
-- v6 p
ostgres
-- v7 tuser
--
UPDATE
pg_class
SET
relowner
=
viewperms_testid
()
...
...
@@ -71,31 +71,31 @@ UPDATE pg_class SET relowner = viewperms_testid()
-- Now for the tests.
--
-- View v1 owner p
gsql
has access to t1 owned by tuser
-- View v1 owner p
ostgres
has access to t1 owned by tuser
SELECT
*
FROM
viewperms_v1
;
-- View v2 owner p
gsql has access to t2 owned by pgsql
(of cause)
-- View v2 owner p
ostgres has access to t2 owned by postgres
(of cause)
SELECT
*
FROM
viewperms_v2
;
-- View v3 owner tuser has access to t1 owned by tuser
SELECT
*
FROM
viewperms_v3
;
-- View v4 owner tuser has NO access to t2 owned by p
gsql
-- View v4 owner tuser has NO access to t2 owned by p
ostgres
-- MUST fail with permission denied
SELECT
*
FROM
viewperms_v4
;
-- v5 (p
gsql) can access v2 (pgsql
) can access t1 (tuser)
-- v5 (p
ostgres) can access v2 (postgres
) can access t1 (tuser)
SELECT
*
FROM
viewperms_v5
;
-- v6 (p
gsql) can access v4 (tuser) CANNOT access t2 (pgsql
)
-- v6 (p
ostgres) can access v4 (tuser) CANNOT access t2 (postgres
)
SELECT
*
FROM
viewperms_v6
;
-- v7 (tuser) CANNOT access v2 (p
gsql
) wanna access t2 (pgslq)
-- v7 (tuser) CANNOT access v2 (p
ostgres
) wanna access t2 (pgslq)
SELECT
*
FROM
viewperms_v7
;
GRANT
SELECT
ON
viewperms_v2
TO
PUBLIC
;
-- but now
-- v7 (tuser) can access v2 (p
gsql via grant) can access t2 (pgsql
)
-- v7 (tuser) can access v2 (p
ostgres via grant) can access t2 (postgres
)
SELECT
*
FROM
viewperms_v7
;
--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment