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

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

I've pushed a fix for this.  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



view thread (7+ messages)

Message-ID: <12895.1492195990@sss.pgh.pa.us>
Permalink:  ../12895.1492195990@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12895.1492195990@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, its+postgres@csuhta.com
  Subject: Re: Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
  In-Reply-To: <12895.1492195990@sss.pgh.pa.us>

* 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