pgsql: Fix nested NOT operation cleanup in tsquery.

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема pgsql: Fix nested NOT operation cleanup in tsquery.
Дата
Msg-id E1bO5t0-0007sV-Ru@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix nested NOT operation cleanup in tsquery.

During normalization of tsquery tree it tries to simplify nested NOT
operations but there it's obvioulsy missed that subsequent node could be
a leaf node (value node)

Bug #14245: Segfault on weird to_tsquery
Reported by David Kellum.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/19d290155d084754eeb5ebb2569654da06073ee8

Modified Files
--------------
src/backend/utils/adt/tsquery_cleanup.c |  8 +++++++-
src/test/regress/expected/tsearch.out   | 12 ++++++++++++
src/test/regress/sql/tsearch.sql        |  3 +++
3 files changed, 22 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve documentation about search_path for SECURITY DEFINER fun
Следующее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Fix parsing NOT sequence in tsquery