mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
Avoid locale-dependent output in select_views regression test.
Use 'COLLATE "C"' to force locale-independent sorting of the iexit view results in select_views.sql. We aren't particularly interested in the exact sorting behavior here, and this doesn't change the shape of the generated plan, so it seems like a wash as far as the goals of this test go. This is in response to bug #14637 from Tomasz Kontusz. It doesn't fully resolve his problem, because he also saw some diffs in the create_index test. But other people have had issues with select_views too, and this fix lets us drop the select_views_1.out variant expected file altogether, which is a nice win from a maintenance standpoint. Emre Hasegeli Discussion: https://postgr.es/m/20170501000609.24360.24248@wrigleys.postgresql.org
This commit is contained in:
parent
764cb2b596
commit
eac0a6c7d3
@ -340,7 +340,7 @@ SELECT * FROM street;
|
||||
98th Ave | [(-122.2001,37.258),(-122.1974,37.27)] | Lafayette
|
||||
(333 rows)
|
||||
|
||||
SELECT name, #thepath FROM iexit ORDER BY 1, 2;
|
||||
SELECT name, #thepath FROM iexit ORDER BY name COLLATE "C", 2;
|
||||
name | ?column?
|
||||
------------------------------------+----------
|
||||
I- 580 | 2
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
||||
|
||||
SELECT * FROM street;
|
||||
|
||||
SELECT name, #thepath FROM iexit ORDER BY 1, 2;
|
||||
SELECT name, #thepath FROM iexit ORDER BY name COLLATE "C", 2;
|
||||
|
||||
SELECT * FROM toyemp WHERE name = 'sharon';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user