Fix memory arrangement of tsquery after removing stop words. It causes

Teodor Sigaev <teodor@sigaev.ru>

Commit: b7a2ab5b6ea0eee67f5e0fa6ea6a8faef4ddac6f
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-03-07T15:29:27Z
Releases: 8.3.1
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.

Files

PathChange+/−
src/backend/tsearch/to_tsany.c modified +25 −1
src/backend/utils/adt/tsquery_op.c modified +7 −20