Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ypizy-0005gJ-N5 for pgsql-bugs@arkaria.postgresql.org; Tue, 05 May 2015 19:59:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ypizx-0006o4-R3 for pgsql-bugs@arkaria.postgresql.org; Tue, 05 May 2015 19:59:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ypizx-0006ny-2y for pgsql-bugs@postgresql.org; Tue, 05 May 2015 19:59:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Ypizu-0007V9-6v for pgsql-bugs@postgresql.org; Tue, 05 May 2015 19:59:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t45JxERT009828; Tue, 5 May 2015 15:59:14 -0400 From: Tom Lane To: Jeff Certain cc: "pgsql-bugs@postgresql.org" Subject: Re: regexp_matches bug in 9.3.4 and 9.4.1 In-reply-to: References: Comments: In-reply-to Jeff Certain message dated "Mon, 04 May 2015 16:56:51 -0000" Date: Tue, 05 May 2015 15:59:14 -0400 Message-ID: <9827.1430855954@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Certain writes: > create table regex_test(filter citext); > insert into regex_test(filter) values ('Filter Filter Filter'); > select filter, regexp_matches(filter, 'Filter', 'g') from regex_test; > select filter, regexp_matches('Filter Filter Filter', 'Filter', 'g') from regex_test; > Expected result: > Both select statements should return the same number of rows. Specifically, in this case, I expect to get back 3 rows. > Actual result: > When referencing the filter column, only one row is ever returned. When supplying the string that is the same as the data in the filter column, the correct number of rows are returned. Fixed, although after discussion we concluded that we should not change the default behavior in the back branches. See commit log message: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b1ec45994e5108d734c45876c25593823fcf8644 Thanks for the report! 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