Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cytFV-0001aV-7V for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 04:54:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cytFU-00075y-Je for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 04:54:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cytFT-00075V-VM for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 04:54:20 +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_2) (envelope-from ) id 1cytFM-0000jL-RA for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 04:54:18 +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 v3E4sA1Z022559; Fri, 14 Apr 2017 00:54: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: <22557.1492145650.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Apr 2017 00:54:10 -0400 Message-ID: <22558.1492145650@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 Hmm ... seems unrelated, since there's no lookahead constraint in this example. Also, the patch I committed earlier today doesn't fix it. 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