Re: 7.5 beta version - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 7.5 beta version
Date
Msg-id 8657.1081773316@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.5 beta version  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
List pgsql-hackers
"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes:
> On Sun, Apr 11, 2004 at 10:21:30PM -0400, Bruce Momjian wrote:
>> I was not sure if Win32 had standard alignment for C.

> Good point.  There's standards, and then there's Windows.  It's possible
> that separate "tight-packing" and "regular" pragmas are used there, just
> for structs that are expected to be used across linkage boundaries.

"#pragma pack" is one of the worst, most dangerous inventions in the
history of software development :-(.  However, I don't think we should
be at any great risk from it, since we don't use it in our own code.
The case that's really hazardous is where you have separately compiled
libraries interfacing through nontrivial struct declarations...  I still
have the scars from making libjpeg do things that way...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: user-defined default public acl
Next
From: pgsql@mohawksoft.com
Date:
Subject: Re: PostgreSQL configuration