]> granicus.if.org Git - postgresql/commit
Refactor from Heikki Linnakangas <heikki@enterprisedb.com>:
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 11 Sep 2007 08:46:29 +0000 (08:46 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 11 Sep 2007 08:46:29 +0000 (08:46 +0000)
commit57cafe79823dcd3653cf5e19cbdf58300cb1576c
tree8616fa0d0c77fd151cf874184fa5f21f56717aef
parentef4d38c86c1b1f834bd70115fd19f03431573c2d
Refactor from Heikki Linnakangas <heikki@enterprisedb.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
src/backend/utils/adt/tsginidx.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector_op.c
src/include/tsearch/ts_type.h