Skip site navigation (1) Skip section navigation (2)

Re: BUG #5469: regexp_matches() has poor behaviour and more poor documentation

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5469: regexp_matches() has poor behaviour and more poor documentation
Date: 2010-05-30 03:45:45
Message-ID: AANLkTimN3m-TUfJjTwSQE-00G7vvHPdvYlLAcApuAZWW@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Sat, May 29, 2010 at 5:00 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> I have updated the patch, attached, to clarify that this returns text
> arrays, and that you can force it to always return one row using
> COALESCE() and a '|' pattern (the later suggested by Daniele Varrazzo).

I don't find this part to be something we should include in the
documentation.  If we want to include a workaround, how about defining
a non-SRF that just calls the SRF and returns the first row?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

In response to

Responses

pgsql-bugs by date

Next:From: Robert HaasDate: 2010-05-30 03:50:23
Subject: Re: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases
Previous:From: Sakari A. MaaranenDate: 2010-05-29 21:44:26
Subject: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group