On 18 November 2012 18:42, Marc Balmer <marc(at)msys(dot)ch> wrote:
> Have you cross-checked this on a 64bit platform vs. a 32 bit platform?
> e.g. on Linux i386 vs. Linux amd64?
Well, strictly speaking sizeof(int) is dictated by both the compiler
and CPU architecture in question. I believe that all current Unix-like
systems follow LLP64 (or LLP32) in practice. sizeof(int) is 4 on
Windows (though, in contrast to LLP64, sizeof(long) is 4 too on 64-bit
windows).
--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services