Re: Yet more tsearch refactoring - Mailing list pgsql-patches

From Teodor Sigaev
Subject Re: Yet more tsearch refactoring
Date
Msg-id 46E5AF1E.3090301@sigaev.ru
Whole thread Raw
In response to Yet more tsearch refactoring  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Responses Re: Yet more tsearch refactoring
Re: Yet more tsearch refactoring
List pgsql-patches

Heikki Linnakangas wrote:
> * 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.

Did you check it on 64-bit boxes with strict alignment? I remember that was a
headache for me.

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-patches by date:

Previous
From: Gregory Stark
Date:
Subject: Re: HOT patch - version 15
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: Yet more tsearch refactoring