1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Use stricter ordering in regression test query for pg_stat_io

The query introduced in 8b532771a099 is proving to have ordering issues
under at least the locale cs_CZ.  This commit updates the query to use a
stricter ordering.

Per reports from buildfarm members hippopotamus and jay.
This commit is contained in:
Michael Paquier 2025-03-08 13:39:57 +09:00
parent 8b532771a0
commit 21f653cc00
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ SHOW track_counts; -- must be on
-- List of backend types, contexts and objects tracked in pg_stat_io.
\a
SELECT backend_type, object, context FROM pg_stat_io
ORDER BY backend_type, object, context COLLATE "C";
ORDER BY backend_type COLLATE "C", object COLLATE "C", context COLLATE "C";
backend_type|object|context
autovacuum launcher|relation|bulkread
autovacuum launcher|relation|init

View File

@ -11,7 +11,7 @@ SHOW track_counts; -- must be on
-- List of backend types, contexts and objects tracked in pg_stat_io.
\a
SELECT backend_type, object, context FROM pg_stat_io
ORDER BY backend_type, object, context COLLATE "C";
ORDER BY backend_type COLLATE "C", object COLLATE "C", context COLLATE "C";
\a
-- ensure that both seqscan and indexscan plans are allowed