pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add C test function for pg_locale.h APIs. 3+ messages / 1 participants [nested] [flat]
* pgsql: Add C test function for pg_locale.h APIs. @ 2026-08-24 18:57 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Jeff Davis @ 2026-08-24 18:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/483e9186746ff3403704a23c36fbe4864a88e833 Modified Files -------------- src/test/regress/expected/misc_functions.out | 40 ++++++++ src/test/regress/regress.c | 134 +++++++++++++++++++++++++++ src/test/regress/sql/misc_functions.sql | 25 +++++ 3 files changed, 199 insertions(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Add C test function for pg_locale.h APIs. @ 2026-08-24 18:57 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Jeff Davis @ 2026-08-24 18:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3b984ab52a4eb667b49271fbde5dfbff7b5ef801 Modified Files -------------- src/test/regress/expected/misc_functions.out | 40 ++++++++ src/test/regress/regress.c | 134 +++++++++++++++++++++++++++ src/test/regress/sql/misc_functions.sql | 25 +++++ 3 files changed, 199 insertions(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Add C test function for pg_locale.h APIs. @ 2026-08-24 18:57 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Jeff Davis @ 2026-08-24 18:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-08-24 18:57 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-08-24 18:57 pgsql: Add C test function for pg_locale.h APIs. Jeff Davis <jdavis@postgresql.org> 2026-08-24 18:57 pgsql: Add C test function for pg_locale.h APIs. Jeff Davis <jdavis@postgresql.org> 2026-08-24 18:57 pgsql: Add C test function for pg_locale.h APIs. Jeff Davis <jdavis@postgresql.org>
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