pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers@postgreSQL.org
Cc: Bruno Wolff III <bruno@wolff.to>
Subject: Re: Better locale-specific-character-class handling for regexps
Date: Mon, 05 Sep 2016 12:10:31 -0400
Message-ID: <12356.1473091831@sss.pgh.pa.us> (raw)
In-Reply-To: <e2d076ae-4685-f164-5a4a-05e7a0918793@iki.fi>
References: <15563.1471913698@sss.pgh.pa.us>
	<e604d9ec-0c09-5e1d-14a2-196dd66fd462@iki.fi>
	<20763.1473011046@sss.pgh.pa.us>
	<e2d076ae-4685-f164-5a4a-05e7a0918793@iki.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Heikki Linnakangas <hlinnaka@iki.fi> writes:
> On 09/04/2016 08:44 PM, Tom Lane wrote:
>> I guess I could follow the lead of collate.linux.utf8.sql and produce
>> a test that's only promised to pass on one platform with one encoding,
>> but I'm not terribly excited by that.  AFAIK that test file does not
>> get run at all in the buildfarm or in the wild.

> I'm not too worried if the tests don't get run regularly, but I don't 
> like the idea that only works on one platform.

Well, it would work on any platform that reports high Unicode letters
as letters.  The problem for putting this into the regular regression
tests is that the generic tests don't even assume UTF8 encoding, let
alone a Unicode-ish locale.

> Since we're now de facto maintainers of this regexp library, and our 
> version could be used somewhere else than PostgreSQL too, it would 
> actually be nice to have a regression suite that's independent from the 
> pg_regress infrastructure, and wouldn't need a server to run.

If anyone ever really picks up the challenge of making the regexp library
a standalone project, I think one of the first orders of business would be
to pull out the Tcl project's regexp-related regression tests.  There's a
pretty extensive set of tests written by Henry Spencer himself, and more
that they added over the years; it's far more comprehensive than our
tests.  (I've looked at stealing that test set in toto, but it requires
some debug APIs that we don't expose in SQL, and probably don't want to.)

In any case, this is getting very far afield from the current patch.
I'm willing to add a regexp.linux.ut8.sql test file if you think it's
important to have some canned tests that exercise this new code, but
otherwise I don't see any near-term solution.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <12356.1473091831@sss.pgh.pa.us>
Permalink:  ../12356.1473091831@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12356.1473091831@sss.pgh.pa.us

 · 

reply

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hlinnaka@iki.fi, bruno@wolff.to
  Subject: Re: Better locale-specific-character-class handling for regexps
  In-Reply-To: <12356.1473091831@sss.pgh.pa.us>
  References: <15563.1471913698@sss.pgh.pa.us> <e604d9ec-0c09-5e1d-14a2-196dd66fd462@iki.fi> <20763.1473011046@sss.pgh.pa.us> <e2d076ae-4685-f164-5a4a-05e7a0918793@iki.fi> <12356.1473091831@sss.pgh.pa.us>

* 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