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: Add C test function for pg_locale.h APIs.
Date: Mon, 24 Aug 2026 18:57:26 +0000
Message-ID: <E1wyZrJ-00000001wPW-1VeX@gemulon.postgresql.org> (raw)

Add C test function for pg_locale.h APIs.

Test the API independently to account for fallback paths that aren't
adequately tested from SQL.

The backport to 18 also tests the previously-supported behavior where
a size of -1 meant that the string was NUL-terminated. That behavior
was later removed in 19.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/v36ssaygf7grb3qzfsjhtdzi7kqd45ds56nyuf7gi5qjml4qbb@ezmfqzmhlrs2
Backpatch-through: 18

Branch
------
REL_18_STABLE

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

Modified Files
--------------
src/test/regress/expected/misc_functions.out |  40 +++++++
src/test/regress/regress.c                   | 150 +++++++++++++++++++++++++++
src/test/regress/sql/misc_functions.sql      |  25 +++++
3 files changed, 215 insertions(+)



view thread (3+ messages)

Message-ID: <E1wyZrJ-00000001wPW-1VeX@gemulon.postgresql.org>
Permalink:  ../E1wyZrJ-00000001wPW-1VeX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wyZrJ-00000001wPW-1VeX@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: Add C test function for pg_locale.h APIs.
  In-Reply-To: <E1wyZrJ-00000001wPW-1VeX@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