From: | teodor(at)postgresql(dot)org (Teodor Sigaev) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Refactor from Heikki Linnakangas <heikki@enterprisedb.com>: * |
Date: | 2007-09-11 08:46:29 |
Message-ID: | 20070911084629.6D976754206@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Refactor from Heikki Linnakangas <heikki(at)enterprisedb(dot)com>:
* Defined new struct WordEntryPosVector that holds a uint16 length and a
variable size array of WordEntries. This replaces the previous
convention of a variable size uint16 array, with the first element
implying the length. WordEntryPosVector has the same layout in memory,
but is more readable in source code. The POSDATAPTR and POSDATALEN
macros are still used, though it would now be more readable to access
the fields in WordEntryPosVector directly.
* Removed needfree field from DocRepresentation. It was always set to false.
* Miscellaneous other commenting and refactoring
Modified Files:
--------------
pgsql/src/backend/utils/adt:
tsginidx.c (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsginidx.c?r1=1.3&r2=1.4)
tsgistidx.c (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsgistidx.c?r1=1.3&r2=1.4)
tsrank.c (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsrank.c?r1=1.4&r2=1.5)
tsvector_op.c (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsvector_op.c?r1=1.4&r2=1.5)
pgsql/src/include/tsearch:
ts_type.h (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_type.h?r1=1.4&r2=1.5)
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2007-09-11 08:51:22 | pgsql: Fix ts_debug function to prevent unneeded calls of ts_lexize(). |
Previous Message | User Mkz | 2007-09-11 08:42:01 | pgbouncer - pgbouncer: tag server dirty if changing vars |