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: Allow length=-1 for NUL-terminated input to pg_strncoll(), etc.
Date: Tue, 24 Sep 2024 22:18:49 +0000
Message-ID: <E1stDrs-000kcE-QU@gemulon.postgresql.org> (raw)

Allow length=-1 for NUL-terminated input to pg_strncoll(), etc.

Like ICU, allow a length of -1 to be specified for NUL-terminated
arguments to pg_strncoll(), pg_strnxfrm(), and pg_strnxfrm_prefix().

Simplifies the code and comments.

Discussion: https://postgr.es/m/2d758e07dff26bcc7cbe2aec57431329bfe3679a.camel@j-davis.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 269 ++++++++++++++++----------------------
src/include/utils/pg_locale.h     |   8 +-
2 files changed, 114 insertions(+), 163 deletions(-)



Message-ID: <E1stDrs-000kcE-QU@gemulon.postgresql.org>
Permalink:  ../E1stDrs-000kcE-QU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1stDrs-000kcE-QU@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: Allow length=-1 for NUL-terminated input to pg_strncoll(), etc.
  In-Reply-To: <E1stDrs-000kcE-QU@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