]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commitb7a2ab5b6ea0eee67f5e0fa6ea6a8faef4ddac6f
tree1b1a657e78c46c5736b222a1aa7293be56be7da2
parentffeae03742eefaeaa2a2bc2c41a46853fc4d71d2
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