Skip site navigation (1) Skip section navigation (2)

Re: Yet more tsearch refactoring

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Yet more tsearch refactoring
Date: 2007-09-10 20:54:54
Message-ID: 46E5AF1E.3090301@sigaev.ru (view raw or flat)
Thread:
Lists: 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(at)sigaev(dot)ru
                                                    WWW: http://www.sigaev.ru/

In response to

Responses

pgsql-patches by date

Next:From: Heikki LinnakangasDate: 2007-09-10 21:59:44
Subject: Re: Yet more tsearch refactoring
Previous:From: Gregory StarkDate: 2007-09-10 20:22:52
Subject: Re: HOT patch - version 15

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group