Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
Date
Msg-id 587801.1660457745@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
List pgsql-bugs
... BTW, I wondered how come we'd missed noticing such a serious problem
in any testing.  The code coverage report at

https://coverage.postgresql.org/src/backend/utils/adt/varlena.c.gcov.html

says that only the "if (sss->collate_c)" path in varstr_abbrev_convert
gets exercised in our regression tests.  I thought maybe that just
meant that the coverage.postgresql.org run uses C locale, but I see
the same lack-of-coverage in a local test under LANG=en_US.utf8.
How can we only be reaching this function with sss->collate_c true
when the prevailing locale isn't that?

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
Next
From: Peter Geoghegan
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation