Re: [HACKERS] alpha/64bit weirdness - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] alpha/64bit weirdness
Date
Msg-id 34FE204C.48C9BC8C@alumni.caltech.edu
Whole thread Raw
In response to alpha/64bit weirdness  (Brett McCormick <brett@chicken.org>)
Responses Re: [HACKERS] alpha/64bit weirdness  (Brett McCormick <brett@work.chicken.org>)
List pgsql-hackers
> Why would the atttypmod affect anything before it in the struct?  I
> have verified that everything is shifted over for bytes, but that
> would lead be to beleive that somewhere the length of the first
> attribute (Oid) is being miscalculated?  Where would the code write to
> this data structure without using a pointer to actual struct for
> obtaining the correct memory structure?  I checked for offsetof macro
> calls that might cause this effect, to no avail.

Just speculating here, but I do know that the Alpha will force alignment
within structures. So, if the structure is filled by reading a byte stream
from a file, rather than filled field-by-field, it will misalign if it has
integers < 4 bytes. During the initialization phase, the backend probably does
not go through the file manager, but does some brute-force reading of each
file on disk.

                                         - Tom


pgsql-hackers by date:

Previous
From: Cristian Gafton
Date:
Subject: Re: Glibc2 (was Re: [HACKERS] PostgreSQL - the Linux of Databases...)
Next
From: Cristian Gafton
Date:
Subject: Re: Glibc2 (was Re: [HACKERS] PostgreSQL - the Linux of Databases...)