Re: [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
Дата
Msg-id 12895.1492195990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUGS] Re: BUG #14623: pg_trgm doesn't correctly process some regexp withnegative lookahead  (Corey Csuhta <its+postgres@csuhta.com>)
Список 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

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14623: pg_trgm doesn't correctly process some regexp with negative lookahead
Следующее
От: dixies@infotraxsys.com
Дата:
Сообщение: [BUGS] BUG #14624: Properties Window