| From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Don't accept length of -1 in pg_locale.h APIs. |
| Date: | 2026-05-15 18:10:07 |
| Message-ID: | E1wNwz9-000gNm-0e@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Don't accept length of -1 in pg_locale.h APIs.
Reverts ac30021356. Per discussion, that commit interfered with useful
tooling, and was not worth the special cases.
Suggested-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/s32n3tm2mjh247f3xkkxkdk7cf77hglbr3ia3hrsdjylajou7y@nlldpag3tjd5
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6d22c67c3bf5b50565062a35cbfc46075fb9c276
Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 42 +++----
src/backend/utils/adt/pg_locale_builtin.c | 13 +--
src/backend/utils/adt/pg_locale_icu.c | 187 ++++++++++++++++++++++--------
src/backend/utils/adt/pg_locale_libc.c | 161 ++++++++++++-------------
src/common/unicode/case_test.c | 69 +++--------
src/common/unicode_case.c | 26 ++---
src/include/common/unicode_case.h | 8 +-
src/include/utils/pg_locale.h | 45 ++++---
8 files changed, 297 insertions(+), 254 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-05-15 22:32:46 | pgsql: Doc: fix release-note typo. |
| Previous Message | Bruce Momjian | 2026-05-15 17:27:11 | pgsql: doc PG 19 relnotes: remove "Add fake LSN support to hash index" |