Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build) - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build)
Date
Msg-id 4E04DF10.1090409@enterprisedb.com
Whole thread Raw
In response to Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build)  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build)
List pgsql-hackers
On 24.06.2011 21:24, Robert Haas wrote:
> Out of curiosity (and because there is no comment or Assert here), how
> can you be so sure of the input alignment?

The input TRGM to makesign() is a varlena, so it must be at least 4-byte 
aligned. If it was not for some reason, the existing VARSIZE invocation 
(within GETARR()) would already fail on platforms that are strict about 
alignment.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Jeroen Vermeulen
Date:
Subject: Re: News on Clang
Next
From: Robert Haas
Date:
Subject: Re: Deriving release notes from git commit messages