pgsql: Fix nested NOT operation cleanup in tsquery.

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix nested NOT operation cleanup in tsquery.
Date: 2016-07-15 16:22:46
Message-ID: E1bO5t0-0007sV-Ru@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Teodor Sigaev 2016-07-15 17:02:31 pgsql: Fix parsing NOT sequence in tsquery
Previous Message Tom Lane 2016-07-15 14:58:49 pgsql: Improve documentation about search_path for SECURITY DEFINER fun