pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove char_tolower() API.
Date: Wed, 10 Dec 2025 19:56:56 +0000
Message-ID: <E1vTQIx-00021M-0s@gemulon.postgresql.org> (raw)

Remove char_tolower() API.

It's only useful for an ILIKE optimization for the libc provider using
a single-byte encoding and a non-C locale, but it creates significant
internal complexity.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d.camel@j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e493158d3d25771ed066028c00cbbdb41573496

Modified Files
--------------
src/backend/utils/adt/like.c           | 46 +++++++++++++---------------------
src/backend/utils/adt/like_match.c     | 18 +++++++------
src/backend/utils/adt/pg_locale.c      | 26 -------------------
src/backend/utils/adt/pg_locale_libc.c | 10 --------
src/include/utils/pg_locale.h          |  9 -------
5 files changed, 28 insertions(+), 81 deletions(-)



Message-ID: <E1vTQIx-00021M-0s@gemulon.postgresql.org>
Permalink:  ../E1vTQIx-00021M-0s@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vTQIx-00021M-0s@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove char_tolower() API.
  In-Reply-To: <E1vTQIx-00021M-0s@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox