Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
5d0e8bc9
Commit
5d0e8bc9
authored
10 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Prevent platform-dependent output row ordering in a new test query.
Buildfarm indicates this is necessary.
parent
2c698f43
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/rowsecurity.out
+13
-9
13 additions, 9 deletions
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql
+6
-2
6 additions, 2 deletions
src/test/regress/sql/rowsecurity.sql
with
19 additions
and
11 deletions
src/test/regress/expected/rowsecurity.out
+
13
−
9
View file @
5d0e8bc9
...
@@ -2899,12 +2899,14 @@ SELECT row_security_active('current_check');
...
@@ -2899,12 +2899,14 @@ SELECT row_security_active('current_check');
f
f
(1 row)
(1 row)
SELECT most_common_vals FROM pg_stats where tablename = 'current_check';
SELECT attname, most_common_vals FROM pg_stats
most_common_vals
WHERE tablename = 'current_check'
---------------------
ORDER BY 1;
attname | most_common_vals
-----------+---------------------
{rls_regress_user1}
currentid |
payload |
rlsuser | {rls_regress_user1}
(3 rows)
(3 rows)
SET SESSION AUTHORIZATION rls_regress_user1;
SET SESSION AUTHORIZATION rls_regress_user1;
...
@@ -2915,9 +2917,11 @@ SELECT row_security_active('current_check');
...
@@ -2915,9 +2917,11 @@ SELECT row_security_active('current_check');
t
t
(1 row)
(1 row)
SELECT most_common_vals FROM pg_stats where tablename = 'current_check';
SELECT attname, most_common_vals FROM pg_stats
most_common_vals
WHERE tablename = 'current_check'
------------------
ORDER BY 1;
attname | most_common_vals
---------+------------------
(0 rows)
(0 rows)
--
--
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/rowsecurity.sql
+
6
−
2
View file @
5d0e8bc9
...
@@ -1197,12 +1197,16 @@ SET SESSION AUTHORIZATION rls_regress_user0;
...
@@ -1197,12 +1197,16 @@ SET SESSION AUTHORIZATION rls_regress_user0;
ANALYZE
current_check
;
ANALYZE
current_check
;
-- Stats visible
-- Stats visible
SELECT
row_security_active
(
'current_check'
);
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
;
SET
SESSION
AUTHORIZATION
rls_regress_user1
;
-- Stats not visible
-- Stats not visible
SELECT
row_security_active
(
'current_check'
);
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
-- Collation support
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment