From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor logic to check for ASCII-only characters in string
Date: Mon, 21 Dec 2020 00:37:50 +0000
Message-ID: <E1kr9Cw-0005NA-IS@gemulon.postgresql.org> (raw)
Refactor logic to check for ASCII-only characters in string
The same logic was present for collation commands, SASLprep and
pgcrypto, so this removes some code.
Author: Michael Paquier
Reviewed-by: Stephen Frost, Heikki Linnakangas
Discussion: https://postgr.es/m/X9womIn6rne6Gud2@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/93e8ff8701a65a70ea8826bdde7fdbbd9c285477
Modified Files
--------------
contrib/pgcrypto/pgp-pgsql.c | 18 +++---------------
src/backend/commands/collationcmds.c | 24 ++++--------------------
src/common/saslprep.c | 19 ++-----------------
src/common/string.c | 16 ++++++++++++++++
src/include/common/string.h | 1 +
5 files changed, 26 insertions(+), 52 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Refactor logic to check for ASCII-only characters in string
In-Reply-To: <E1kr9Cw-0005NA-IS@gemulon.postgresql.org>
References: <E1kr9Cw-0005NA-IS@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