Fix memory arrangement of tsquery after removing stop words. It causes
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 7 Mar 2008 14:30:20 +0000 (14:30 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 7 Mar 2008 14:30:20 +0000 (14:30 +0000)
commit9ef9cb4021ae847cd99fdba3df4023885cd2e632
treee0a19c71bfeda384aed41c7bda2f92c66ccdaaf8
parent9a7aed0da10bff9ea7e9d2ddb01be9cbf8cf91fd
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. So, in HEAD it's enough to
fix to_tsquery function, but for previous version it's needed to
remove optimization in CompareTSQ to prevent requirement of renew all
stored tsquery.
src/backend/tsearch/to_tsany.c