pgsql: Fix memory arrangement of tsquery after removing stop words.

From: teodor(at)postgresql(dot)org (Teodor Sigaev)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix memory arrangement of tsquery after removing stop words.
Date: 2008-03-07 14:30:20
Message-ID: 20080307143020.E28E4753F32@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix memory arrangement of tsquery after removing stop words. It causes
a unused memory holes in tsquery.

Per report by Richard Huxton <dev(at)archonet(dot)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.

Modified Files:
--------------
pgsql/src/backend/tsearch:
to_tsany.c (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/to_tsany.c?r1=1.9&r2=1.10)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2008-03-07 14:57:39 pgsql: Add: > > * Add comments on system tables/columns using the
Previous Message Bruce Momjian 2008-03-07 01:46:50 pgsql: Clearify PITR doc wording.