Commit 5d0e8bc9 authored by Tom Lane's avatar Tom Lane

Prevent platform-dependent output row ordering in a new test query.

Buildfarm indicates this is necessary.
parent 2c698f43
...@@ -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)
-- --
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment