Re: check_strxfrm_bug()
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Nathan Bossart <nathandbossart@gmail.com>, Thomas Munro <thomas.munro@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, Alvaro Herrera <alvherre@2ndquadrant.com>, "Jonathan S. Katz" <jkatz@postgresql.org>, Amit Kapila <amit.kapila16@gmail.com>
Date: 2023-04-17T23:52:11Z
Lists: pgsql-hackers
On Mon, Apr 17, 2023 at 03:40:14PM -0700, Peter Geoghegan wrote: > On Mon, Apr 17, 2023 at 2:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> +1. I wonder if we should go further and get rid of TRUST_STRXFRM >> and the not-so-trivial amount of code around it (pg_strxfrm_enabled >> etc). Carrying that indefinitely in the probably-vain hope that >> the libraries will become trustworthy seems rather pointless. >> Besides, if such a miracle does occur, we can dig the code out >> of our git history. > > +1 for getting rid of TRUST_STRXFRM. > > ICU-based collations (which aren't affected by TRUST_STRXFRM) are > becoming the de facto standard (possibly even the de jure standard). > So even if we thought that the situation with strxfrm() had improved, > we'd still have little motivation to do anything about it. Makes sense to do some cleanup now as this is new in the tree. Perhaps somebody from the RMT would like to comment? FYI, Jeff has also posted patches to replace this CFLAGS with a GUC: https://www.postgresql.org/message-id/6ec4ad7f93f255dbb885da0a664d9c77ed4872c4.camel@j-davis.com -- Michael
Commits
-
Don't expose Windows' mbstowcs_l() and wcstombs_l().
- 4e9fa6d56b3e 17.0 landed
-
All supported systems have locale_t.
- 8d9a9f034e92 17.0 landed
-
Remove obsolete defense against strxfrm() bugs.
- 7d3d72b55edd 16.0 landed