From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin@postgresql.org
Cc: Sean Murphy <Sean.Murphy@equipoint.com>
Subject: Re: How to compile with different MAXALIGN?
Date: Thu, 5 Apr 2007 00:53:17 +0200
Message-ID: <200704050053.17612.peter_e@gmx.net> (raw)
In-Reply-To: <4614186B.2060101@equipoint.com>
References: <4614186B.2060101@equipoint.com>
Sean Murphy wrote:
> search of the Docs tells me that I can compile the server with a
> different MAXALIGN, but the install docs don't give any indication
> how this is achieved. Is there a configure or gmake option I can
> feed, or do I need to change a line in one (or more) of the source
> files?
Alignment is a property dictated by the compiler, so the official way to
change that is to argue with your compiler. On Linux i386, it seems
that the option -malign-double will get you the 8 byte alignment that
might be compatible with your Windows build.
All of this, however, is totally unofficial and highly risky, because an
alignment difference might indicate that there are other differences in
the binary data layout that are not caught by the existing checks. You
will get data corruption if you are wrong. Moreover, a build with a
nonstandard alignment will be incompatible with everything else on your
system in ways that are hard to define in brief, so interfacing with
other libraries or modules will possibly be broken, as will your next
PostgreSQL upgrade.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: peter_e@gmx.net, Sean.Murphy@equipoint.com
Subject: Re: How to compile with different MAXALIGN?
In-Reply-To: <200704050053.17612.peter_e@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox