Re: Replication between 64/32bit systems?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Replication between 64/32bit systems?
Date: 2011-09-22 22:26:17
Message-ID: 11817.1316730377@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce <pierce(at)hogranch(dot)com> writes:
> On 09/22/11 1:35 PM, Hannes Erven wrote:
>> I'm still hoping someone would give me a clue why 32/64 bit platform
>> xlogs are (and always will?) be absolutely incompatible... ???

> because the tuple representations are different, plain and simple.

Specifically, the data alignment rules are different, so a 64-bit tuple
can have padding bytes in it in places where a 32-bit tuple doesn't.
This spills over into different numbers of tuples fitting on a page,
etc etc.

> you can run a 32bit Postgres on your 64bit platform.

Yeah, that would be the thing to do if you're stuck with replicating to
nonidentical hardware.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-09-22 22:31:14 Re: Quick Date/Time Index Question
Previous Message Tim Landscheidt 2011-09-22 22:22:50 Re: Quick Date/Time Index Question