Re: Hide exposed impl detail of wchar.c

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Jubilee Young <workingjubilee@gmail.com>
Cc: pgsql-hackers@postgresql.org, andres@anarazel.de, johncnaylorls@gmail.com, tgl@sss.pgh.pa.us
Date: 2023-11-21T04:39:43Z
Lists: pgsql-hackers
On Mon, Nov 20, 2023 at 05:14:17PM -0800, Jubilee Young wrote:
> On Mon, Nov 20, 2023 at 2:52 PM Nathan Bossart <nathandbossart@gmail.com> wrote:
>> Does pgrx use ascii.h at all?
> 
> We don't use utils/ascii.h, no.

Alright.  The next minor release isn't until February, so I'll let this one
sit a little while longer in case anyone objects to back-patching something
like this [0].

[0] https://postgr.es/m/attachment/152305/move_is_valid_ascii_v2.patch

-- 
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.