Fix memory arrangement of tsquery after removing stop words. It causes
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 7 Mar 2008 15:29:27 +0000 (15:29 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 7 Mar 2008 15:29:27 +0000 (15:29 +0000)
commit36c3b62a8d34ce701274fefb31e0ba787cff5bf4
tree6daaa06378c554b81e7f9d9b3712837916b991c7
parent8b21a3ca677fec9e51553cf819b1006de1b0e7ae
Fix memory arrangement  of tsquery after removing stop words. It causes
a unused memory holes in tsquery.

Per report by Richard Huxton <dev@archonet.com>.

It was working well because in fact tsquery->size is not used for any
kind of operation except comparing tsqueries. To prevent requirement
of renew all stored tsquery optimization in CompareTSQ is removed.
src/backend/tsearch/to_tsany.c
src/backend/utils/adt/tsquery_op.c