Re: [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
Date
Msg-id 22558.1492145650@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp withnegative lookahead  (Corey Csuhta <its+postgres@csuhta.com>)
Responses [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp withnegative lookahead
List pgsql-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
characterclasses. 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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [BUGS] BUG #14622: could not remove file "pg_xlog/RECOVERYXLOG":Permission denied
Next
From: Corey Csuhta
Date:
Subject: [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp withnegative lookahead