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 15:29:27
Message-ID: 20080307152927.90A90753F32@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. To prevent requirement
of renew all stored tsquery optimization in CompareTSQ is removed.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/tsearch:
to_tsany.c (r1.8 -> r1.8.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/to_tsany.c?r1=1.8&r2=1.8.2.1)
pgsql/src/backend/utils/adt:
tsquery_op.c (r1.3 -> r1.3.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsquery_op.c?r1=1.3&r2=1.3.2.1)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2008-03-07 15:56:40 pgsql: Add: > o Have \l+ show database size, if permissions allow > >
Previous Message Bruce Momjian 2008-03-07 14:57:39 pgsql: Add: > > * Add comments on system tables/columns using the