Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz6M4-0004ex-KF for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 18:54:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cz6M4-0000JX-7E for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 18:54:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cz6LM-0006ZI-C0 for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 18:53:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cz6LJ-0005gj-Im for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 18:53:15 +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 v3EIrAtr012896; Fri, 14 Apr 2017 14:53:10 -0400 From: Tom Lane To: Corey Csuhta cc: pgsql-bugs@postgresql.org Subject: Re: Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead In-reply-to: References: Comments: In-reply-to Corey Csuhta message dated "Thu, 13 Apr 2017 16:04:08 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <12894.1492195990.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Apr 2017 14:53:10 -0400 Message-ID: <12895.1492195990@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 Corey Csuhta writes: > I don=E2=80=99t know if this is related or a separate bug, but I am also = having this problem with the `+` operator and character classes. Very simil= ar test case: > CREATE TABLE foobar (x text); > INSERT INTO foobar VALUES ('Trying +1/+1'),('Also doing +20/+20'); > CREATE EXTENSION pg_trgm; > CREATE INDEX ON foobar USING gin (x gin_trgm_ops); > SET enable_seqscan TO on; > SELECT * FROM foobar WHERE x ~ '\+\d+\/\+\d+'; -- Returns both rows > SET enable_seqscan TO off; > SELECT * FROM foobar WHERE x ~ '\+\d+\/\+\d+'; -- Returns 0 rows I've pushed a fix for this. Thanks for the report! regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs