Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz1ZN-0007C2-Oh for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 13:47:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cz1ZM-00066c-Og for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Apr 2017 13:47:24 +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 1cytPy-0002sH-VB for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 05:05:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cytPv-0000vU-W6 for pgsql-bugs@postgresql.org; Fri, 14 Apr 2017 05:05:09 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E46FB208F0; Fri, 14 Apr 2017 01:05:06 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 14 Apr 2017 01:05:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csuhta.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=JIAgOAR4mX1wqUt W7wOxe8C6lNw3WCrSrWTlz6vxsPM=; b=fCT8mBqsDWiFlk4L82KWfpocsPRk5BY 53PPtsLo1TgN5HCfPxV/tDHSjncQOVey2GNZB8/Ib0kRBKFEOcDVDXWfgdkofSwm AQpVNEVDXGom69bHmH8GoOxBjkJgIC0JUgCeOaEHZxu2o+Ow8vx6WHxzbZEIEx3k uu6mZYgRsgTY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=JIAgOAR4mX1wqUtW7wOxe8C6lNw3WCrSrWTlz6vxsPM=; b=YuuSGNWs CUdtEoFLLo6sTCkfiTobHPVXClZVgyjtwANBdr9unIVRvoHI77KegvvQP6qzXuUQ ETvZefm8nBM0fGCXHueK6T63ldraN4gu/rDGr0PADr911vKncfnOB5jRnyuJD8W1 JOLmbqu0FMUYKvL8lak49g8Xb0FyEZuL6O/bzKkdGcTESlHO8EmraE9sUQWrrLk9 RbAsOPcDjxXnWAnjAUOzvNZ7X3w7IrLPUjn1+cuDCsF5z12UOUpypcOGcwCQWTXf VscTbmokXz3uxhhJonHNGmUr0s6kNMu48bQ6LSxYz6k1IBnxMk0QBAtQmtBvBHxe LcXfrTz9wVKO4g== X-ME-Sender: X-Sasl-enc: PogYj27RmNNQ1iWvOt6hrStGsbxw8+Q4OjUh6xTT2aRC 1492146306 Received: from thanatos.csuhta.com (c-73-133-10-210.hsd1.va.comcast.net [73.133.10.210]) by mail.messagingengine.com (Postfix) with ESMTPA id A297D248B1; Fri, 14 Apr 2017 01:05:06 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead From: Corey Csuhta In-Reply-To: <22558.1492145650@sss.pgh.pa.us> Date: Fri, 14 Apr 2017 01:05:06 -0400 Cc: pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com> References: <22558.1492145650@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3273) X-Pg-Spam-Score: -2.7 (--) 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 Does this still seem like a problem? Is it helpful if I submit a new bug # = for tracking purposes? > On Apr 14, 2017, at 12:54 AM, Tom Lane wrote: >=20 > 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 simi= lar 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 >=20 > Hmm ... seems unrelated, since there's no lookahead constraint in this > example. Also, the patch I committed earlier today doesn't fix it. >=20 > 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