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
5d0e8bc9
Commit
5d0e8bc9
authored
Jul 28, 2015
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent platform-dependent output row ordering in a new test query.
Buildfarm indicates this is necessary.
parent
2c698f43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
src/test/regress/expected/rowsecurity.out
src/test/regress/expected/rowsecurity.out
+13
-9
src/test/regress/sql/rowsecurity.sql
src/test/regress/sql/rowsecurity.sql
+6
-2
No files found.
src/test/regress/expected/rowsecurity.out
View file @
5d0e8bc9
...
...
@@ -2899,12 +2899,14 @@ SELECT row_security_active('current_check');
f
(1 row)
SELECT most_common_vals FROM pg_stats where tablename = 'current_check';
most_common_vals
---------------------
{rls_regress_user1}
SELECT attname, most_common_vals FROM pg_stats
WHERE tablename = 'current_check'
ORDER BY 1;
attname | most_common_vals
-----------+---------------------
currentid |
payload |
rlsuser | {rls_regress_user1}
(3 rows)
SET SESSION AUTHORIZATION rls_regress_user1;
...
...
@@ -2915,9 +2917,11 @@ SELECT row_security_active('current_check');
t
(1 row)
SELECT most_common_vals FROM pg_stats where tablename = 'current_check';
most_common_vals
------------------
SELECT attname, most_common_vals FROM pg_stats
WHERE tablename = 'current_check'
ORDER BY 1;
attname | most_common_vals
---------+------------------
(0 rows)
--
...
...
src/test/regress/sql/rowsecurity.sql
View file @
5d0e8bc9
...
...
@@ -1197,12 +1197,16 @@ SET SESSION AUTHORIZATION rls_regress_user0;
ANALYZE
current_check
;
-- Stats visible
SELECT
row_security_active
(
'current_check'
);
SELECT
most_common_vals
FROM
pg_stats
where
tablename
=
'current_check'
;
SELECT
attname
,
most_common_vals
FROM
pg_stats
WHERE
tablename
=
'current_check'
ORDER
BY
1
;
SET
SESSION
AUTHORIZATION
rls_regress_user1
;
-- Stats not visible
SELECT
row_security_active
(
'current_check'
);
SELECT
most_common_vals
FROM
pg_stats
where
tablename
=
'current_check'
;
SELECT
attname
,
most_common_vals
FROM
pg_stats
WHERE
tablename
=
'current_check'
ORDER
BY
1
;
--
-- Collation support
...
...
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