pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Corey Csuhta <its+postgres@csuhta.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
Date: Fri, 14 Apr 2017 01:05:06 -0400
Message-ID: <606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com> (raw)
In-Reply-To: <22558.1492145650@sss.pgh.pa.us>
References: <E2B01A4B-4530-406B-8D17-2F67CF9A16BA@csuhta.com>
	<22558.1492145650@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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 <tgl@sss.pgh.pa.us> wrote:
> 
> Corey Csuhta <its+postgres@csuhta.com> writes:
>> I don’t know if this is related or a separate bug, but I am also having this problem with the `+` operator and character classes. Very similar 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



-- 
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 (7+ messages)  latest in thread

Message-ID: <606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com>
Permalink:  ../606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com/
Also on:    postgresql.org/message-id/606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: its+postgres@csuhta.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
  In-Reply-To: <606E7756-3DAE-482D-9131-A002F3F02CFD@csuhta.com>

* 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