]> granicus.if.org Git - postgresql/commit
Fix nested NOT operation cleanup in tsquery.
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Jul 2016 16:22:18 +0000 (19:22 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Jul 2016 16:22:18 +0000 (19:22 +0300)
commit19d290155d084754eeb5ebb2569654da06073ee8
tree5d732d9e5d88087605083878100f5eaafd101e72
parentce150e7e0fc1a127fee7933d71f4204a79ecce04
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.
src/backend/utils/adt/tsquery_cleanup.c
src/test/regress/expected/tsearch.out
src/test/regress/sql/tsearch.sql