mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
PG16: Fix flaky test
In PG16 new collations named `en_US` and `en-US` on Windows bootstrap that are incompatible with UTF-8. So added the `collencoding` to the order of the query that determine the collation name to get another compatible collation.
This commit is contained in:
parent
9d4ffc94af
commit
d602be4d81
@ -5,9 +5,9 @@
|
|||||||
-- We have different collation names such as en_US, en-US-x-icu and so on,
|
-- We have different collation names such as en_US, en-US-x-icu and so on,
|
||||||
-- that are available on different platforms.
|
-- that are available on different platforms.
|
||||||
select * from (
|
select * from (
|
||||||
select 3 priority, 'en_US' "COLLATION"
|
select 3 priority, 'C' "COLLATION"
|
||||||
union all (select 2, collname from pg_collation where collname ilike 'en_us%' order by collname limit 1)
|
union all (select 2, collname from pg_collation where collname ilike 'en_us%' order by collencoding, collname limit 1)
|
||||||
union all (select 1, collname from pg_collation where collname ilike 'en_us_utf%8%' order by collname limit 1)
|
union all (select 1, collname from pg_collation where collname ilike 'en_us_utf%8%' order by collencoding, collname limit 1)
|
||||||
) c
|
) c
|
||||||
order by priority limit 1 \gset
|
order by priority limit 1 \gset
|
||||||
create table compressed_collation_ht(time timestamp, name text collate :"COLLATION",
|
create table compressed_collation_ht(time timestamp, name text collate :"COLLATION",
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
-- We have different collation names such as en_US, en-US-x-icu and so on,
|
-- We have different collation names such as en_US, en-US-x-icu and so on,
|
||||||
-- that are available on different platforms.
|
-- that are available on different platforms.
|
||||||
select * from (
|
select * from (
|
||||||
select 3 priority, 'en_US' "COLLATION"
|
select 3 priority, 'C' "COLLATION"
|
||||||
union all (select 2, collname from pg_collation where collname ilike 'en_us%' order by collname limit 1)
|
union all (select 2, collname from pg_collation where collname ilike 'en_us%' order by collencoding, collname limit 1)
|
||||||
union all (select 1, collname from pg_collation where collname ilike 'en_us_utf%8%' order by collname limit 1)
|
union all (select 1, collname from pg_collation where collname ilike 'en_us_utf%8%' order by collencoding, collname limit 1)
|
||||||
) c
|
) c
|
||||||
order by priority limit 1 \gset
|
order by priority limit 1 \gset
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user