Re: building a binary-portable database - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: building a binary-portable database
Date
Msg-id 20090802162105.GC9474@svana.org
Whole thread Raw
In response to Re: building a binary-portable database  (Alexy Khrabrov <deliverable@gmail.com>)
Responses Re: building a binary-portable database
List pgsql-general
On Sun, Aug 02, 2009 at 12:02:41PM -0400, Alexy Khrabrov wrote:
> How about portability between systems with the same endianness and
> bitness, e.g. Intel 64-bit ones?

Some parameters vary between compilers on the same platform. IIRC
whether a long on a 64-bit platform is 64-bit depends on the compiler
(windows platforms leave long as 32-bit). Alignment also differs
between compilers which will translate to differnces on disk.

Then you have things like time_t which depend on the C library you use.
size_t depends on the memory model, or perhaps even on the compile
flags. integer datetimes is a configure option.

There's nothing to stop you trying, but there's been no effort in
making it work.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Division by zero
Next
From: Sam Mason
Date:
Subject: Re: Division by zero