pgsql: Simplify coding style of is_valid_ascii()

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify coding style of is_valid_ascii()
Date: 2022-08-05 09:53:48
Message-ID: E1oJu1c-000PSf-2t@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify coding style of is_valid_ascii()

Calculate end of input rather than maintaining length,
per prior suggestion from Heikki Linnakangas. In passing,
use more natural language in a comment.

Discussion: https://www.postgresql.org/message-id/b4648cc2-5e9c-c93a-52cc-51e5c658a4f6%40iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b41a1579bd37aa95924d592d7a18a79d669662f

Modified Files
--------------
src/include/mb/pg_wchar.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-08-05 09:56:26 pgsql: regress: fix test instability
Previous Message Etsuro Fujita 2022-08-05 08:28:48 pgsql: postgres_fdw: Disable batch insertion when there are WCO constra