Re: btree_gist macaddr valgrind woes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: btree_gist macaddr valgrind woes
Date
Msg-id 21448.1400268989@sss.pgh.pa.us
Whole thread Raw
In response to Re: btree_gist macaddr valgrind woes  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: btree_gist macaddr valgrind woes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> ISTM the "correct" fix would be to define a gbtreekey12 data type and 
> use that. That's not back-patchable though, and introducing a whole new 
> type to save a few bytes is hardly worth it. What you did makes sense.

BTW, the *real* problem with all this stuff is that the gbtreekeyNN types
are declared as having int alignment, even though some of the opclasses
store double-aligned types in them.  I imagine it's possible to provoke
bus errors on machines that are picky about alignment.  The first column
of an index is safe enough because index tuples will be double-aligned
anyway, but it seems like there's a hazard for lower-order columns.
This is something we cannot fix compatibly :-(
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: btree_gist macaddr valgrind woes
Next
From: Heikki Linnakangas
Date:
Subject: Re: Re: pg_basebackup: could not get transaction log end position from server: FATAL: could not open file "./pg_hba.conf~": Permission denied