Re: patch adding new regexp functions - Mailing list pgsql-patches

From Tom Lane
Subject Re: patch adding new regexp functions
Date
Msg-id 24873.1171553846@sss.pgh.pa.us
Whole thread Raw
In response to Re: patch adding new regexp functions  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: patch adding new regexp functions
Re: patch adding new regexp functions
List pgsql-patches
Alvaro Herrera <alvherre@commandprompt.com> writes:
> so that you would have the position for each match, automatically.  Is
> this information available in the regex code?

Certainly, that's where we got the text snippets from to begin with.
However, I'm not sure that this is important enough to justify a special
type --- for one thing, since we don't have arrays of composites, that
would foreclose responding to Peter's concern that SETOF is the wrong
thing.  If you look at the Perl and Tcl APIs for regexes, they return
just the strings, not the numerical positions; and I've not heard anyone
complaining about that.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: patch adding new regexp functions
Next
From: Alvaro Herrera
Date:
Subject: Re: Autovacuum launcher