Stabilize stats_ext test with other collations
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 27 Mar 2021 17:26:52 +0000 (18:26 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sat, 27 Mar 2021 17:26:56 +0000 (18:26 +0100)
commit2a058e938c73bfb85bbc9fa93dea74788043ca6c
tree65b36a6dd2d0fdc8a6c76362386d214fad46a802
parent8df2f371141ea267627364cd00e1791054d82d7e
Stabilize stats_ext test with other collations

The tests used string concatenation to test statistics on expressions,
but that made the tests locale-dependent, e.g. because the ordering of
'11' and '1X' depends on the collation. This affected both the estimated
and actual row couts, breaking some of the tests.

Fixed by replacing the string concatenation with upper() function call,
so that the text values contain only digits.

Discussion: https://postgr.es/m/b650920b-2767-fbc3-c87a-cb8b5d693cbf%40enterprisedb.com
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql