Re: Hide exposed impl detail of wchar.c

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jubilee Young <workingjubilee@gmail.com>, pgsql-hackers@postgresql.org, andres@anarazel.de, johncnaylorls@gmail.com
Date: 2024-01-29T18:12:49Z
Lists: pgsql-hackers
On Fri, Jan 26, 2024 at 01:24:19PM -0500, Tom Lane wrote:
> Nathan Bossart <nathandbossart@gmail.com> writes:
>> I see that I was planning on back-patching this to v16, but since
>> is_valid_ascii() was introduced in v15, I'm wondering if it'd be better to
>> back-patch it there so that is_valid_ascii() lives in the same file for all
>> versions where it exists.  Thoughts?
> 
> Yeah, if we're going to back-patch at all, that probably makes sense.

Committed/back-patched.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



Commits

  1. Move is_valid_ascii() to ascii.h.

  2. Use SSE2 in is_valid_ascii() where available.