[PROPOSAL] Skip test citext_utf8 on Windows - Mailing list pgsql-hackers

From Oleg Tselebrovskiy
Subject [PROPOSAL] Skip test citext_utf8 on Windows
Date
Msg-id 6885a0b52d06f7e5910d2b6276bbb4e8@postgrespro.ru
Whole thread Raw
Responses Re: [PROPOSAL] Skip test citext_utf8 on Windows
Re: [PROPOSAL] Skip test citext_utf8 on Windows
List pgsql-hackers
Greetings, everyone!

While running "installchecks" on databases with UTF-8 encoding the test
citext_utf8 fails because of Turkish dotted I like this:

  SELECT 'i'::citext = 'İ'::citext AS t;
   t
  ---
- t
+ f
  (1 row)

I tried to replicate the test's results by hand and with any collation
that I tried (including --locale="Turkish") this test failed

Also an interesing result of my tesing. If you initialize you DB
with -E utf-8 --locale="Turkish" and then run select LOWER('İ');
the output will be this:
  lower
-------
  İ
(1 row)

Which I find strange since lower() uses collation that was passed
(default in this case but still)

My PostgreSQL version is this:
postgres=# select version();
                                version
----------------------------------------------------------------------
  PostgreSQL 17devel on x86_64-windows, compiled by gcc-13.1.0, 64-bit

The proposed patch for skipping test is attached

Oleg Tselebrovskiy, Postgres Pro
Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum
Next
From: Anthonin Bonnefoy
Date:
Subject: Fix expecteddir argument in pg_regress