Re: BUG #10889: Cannot add 2 floats from regular expression - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #10889: Cannot add 2 floats from regular expression
Date
Msg-id 23769.1404747766@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #10889: Cannot add 2 floats from regular expression  (David G Johnston <david.g.johnston@gmail.com>)
Responses Re: BUG #10889: Cannot add 2 floats from regular expression  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-bugs
David G Johnston <david.g.johnston@gmail.com> writes:
> Suggest wrapping it in a function - or making a "regexp_matches_single"
> function that behaves similarly but returns a single text[] instead of a
> SETOF text[]

I wonder if we should have such a thing built-in.  This isn't the first
complaint we've heard about the SETOF API being awkward to use, and it's
only needed if you specify the 'g' flag.  Perhaps we could have a variant
that forbids 'g' and returns a non-set (either the single match, or NULL).

            regards, tom lane

pgsql-bugs by date:

Previous
From: David G Johnston
Date:
Subject: Re: BUG #10889: Cannot add 2 floats from regular expression
Next
From: David G Johnston
Date:
Subject: Re: BUG #10889: Cannot add 2 floats from regular expression