Re: Replication between 64/32bit systems?

From: Hannes Erven <hannes(at)erven(dot)at>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Replication between 64/32bit systems?
Date: 2011-09-23 14:44:27
Message-ID: 4E7C9B4B.7060300@erven.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

OK,

thank you for clarification, I'll "resign" ;-) and accept that mixing
32/64 bits is not possible.

I continued by experiments, and would like to share my results. First of
all, I'm an idiot because I had logging_collector set to on and wondered
why the terminals did not give any meaningful output when postgres was
started with -d4 .

Having fixed that, what actually seems to work with 9.1.0 is:

On the Windows host (64 bit):
- just use the 32bit binaries
- initdb --locale C
(or any other locale that is also available on the slave)

Linux replication slave (32 bit):
- use CFLAGS="m128bit-long-double -malign-double" ./configure
(otherwise you'll hit "checksum error in control file")

When you try to connect to a 64bit postgres host, the connection
succeeds and everything looks fine so far, until the first transaction
needs to be transferred: then, weird messages appear on the slave.
Obviously, this is the result of binary protocol incompatibility...

So far, I have only tried to replicate a small, newly created test
database. Next, I'll transfer a bigger database to a locale=C cluster
and see if replication works there as well.

Thanks again for your support,

-hannes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregg Jaskiewicz 2011-09-23 15:13:36 Re: pg_dump compress
Previous Message Venkat Balaji 2011-09-23 14:40:39 Re: : Checksum ERROR when restoring Online Backup