pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Jeff Certain <gcertain@dynamicsignal.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: regexp_matches bug in 9.3.4 and 9.4.1
Date: Mon, 04 May 2015 19:51:22 -0400
Message-ID: <16889.1430783482@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwavM_ED6BShGjL=m-cunHrOxu_kZpvLhhUU8tYdiaYuUA@mail.gmail.com>
References: <BN1PR04MB37467AA1D412223B3D4A595DFD20@BN1PR04MB374.namprd04.prod.outlook.com>
	<CAKFQuwavM_ED6BShGjL=m-cunHrOxu_kZpvLhhUU8tYdiaYuUA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Seems the however the citext version of regexp_matches is invoked it
> ignores the global flag. Haven't explored deeper.

Hm ...

regression=# create extension citext;
CREATE EXTENSION
regression=# \df regexp_matches
                               List of functions
   Schema   |      Name      | Result data type | Argument data types  |  Type  
------------+----------------+------------------+----------------------+--------
 pg_catalog | regexp_matches | SETOF text[]     | text, text           | normal
 pg_catalog | regexp_matches | SETOF text[]     | text, text, text     | normal
 public     | regexp_matches | text[]           | citext, citext       | normal
 public     | regexp_matches | text[]           | citext, citext, text | normal
(4 rows)

Looks like somebody just fat-fingered the declaration of citext's
regexp_matches() functions: they should be marked proretset and
they ain't.  Sigh.  I wonder if any of the other ones are wrong.

			regards, tom lane


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



view thread (6+ messages)  latest in thread

Message-ID: <16889.1430783482@sss.pgh.pa.us>
Permalink:  ../16889.1430783482@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16889.1430783482@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, gcertain@dynamicsignal.com
  Subject: Re: regexp_matches bug in 9.3.4 and 9.4.1
  In-Reply-To: <16889.1430783482@sss.pgh.pa.us>
  References: <BN1PR04MB37467AA1D412223B3D4A595DFD20@BN1PR04MB374.namprd04.prod.outlook.com> <CAKFQuwavM_ED6BShGjL=m-cunHrOxu_kZpvLhhUU8tYdiaYuUA@mail.gmail.com> <16889.1430783482@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