pgsql: Ensure all pg_locale.h APIs work with collate_is_c. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Ensure all pg_locale.h APIs work with collate_is_c.
Date
Msg-id E1wx5pH-00000001Nqf-469T@gemulon.postgresql.org
Whole thread
List pgsql-committers
Ensure all pg_locale.h APIs work with collate_is_c.

Safer for callers, so that checking collate_is_c is only needed if the
caller wants to optimize for that case.

Backpatch to avoid creating a hazard for other backpatches in this
area.

Suggested-by: Andres Freund <andres@anarazel.de>
Suggested-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/v36ssaygf7grb3qzfsjhtdzi7kqd45ds56nyuf7gi5qjml4qbb@ezmfqzmhlrs2
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bdb82ec8c24184844d561e2c76ef02cc1b551213

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 55 ++++++++++++++++++++++++++++++++++-----
1 file changed, 49 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Rewrite tsqueryout() to use StringInfo to build the output strin
Next
From: Tom Lane
Date:
Subject: pgsql: Micro-optimize appendStringInfo[VA].