Re: regexp_matches and regexp_split are inconsistent - Mailing list pgsql-hackers

From Tom Lane
Subject Re: regexp_matches and regexp_split are inconsistent
Date
Msg-id 12786.1186968003@sss.pgh.pa.us
Whole thread Raw
In response to Re: regexp_matches and regexp_split are inconsistent  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-hackers
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Fri, 10 Aug 2007, Tom Lane wrote:
>> Is this what we want?  Arguably regexp_split is doing the most
>> reasonable thing for its intended usage, but the strict definition of
>> regexp matching seems to require what regexp_matches does.  I think
>> we need to either change one function to match the other, or else
>> document the inconsistency.

> I'm not sure how many languages do this, but at least perl seems to work
> similarly, which makes me guess that it's probably similar in a bunch of
> languages. If it is, then we should probably just document the
> inconsistency.

The Perl precedent is good enough for me.  Documented...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Interesting misbehavior of repalloc()
Next
From: Devrim GÜNDÜZ
Date:
Subject: Maximum row size