Replication between different architectures

Started by Phil Endecottover 4 years ago4 messagesgeneral
Jump to latest
#1Phil Endecott
spam_from_pgsql_lists@chezphil.org

Dear Experts,

Is replication going to work from an x86-64 master to an
arm64 replica?

These are AWS EC2 instances, both 64-bit. I may eventually move
them all to ARM, but have a mix of architectures temporarily.
What could possibly go wrong ?!

(If it does fail, will I notice before it's too late?)

Thanks, Phil.

In reply to: Phil Endecott (#1)
Re: Replication between different architectures

On Wed, Oct 13, 2021 at 05:09:36PM +0100, Phil Endecott wrote:

Is replication going to work from an x86-64 master to an
arm64 replica?

Hi,
tested, works well.

Best regards,

depesz

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Phil Endecott (#1)
Re: Replication between different architectures

"Phil Endecott" <spam_from_pgsql_lists@chezphil.org> writes:

Is replication going to work from an x86-64 master to an
arm64 replica?

The hard part of this is usually whether the operating systems
are identical. If they have different locale data, you may find
that indexes on text columns appear out-of-order and therefore
corrupt on the replica. See

https://wiki.postgresql.org/wiki/Locale_data_changes

regards, tom lane

#4Phil Endecott
spam_from_pgsql_lists@chezphil.org
In reply to: Tom Lane (#3)
Re: Replication between different architectures

Tom Lane wrote:

"Phil Endecott" <spam_from_pgsql_lists@chezphil.org> writes:

Is replication going to work from an x86-64 master to an
arm64 replica?

The hard part of this is usually whether the operating systems
are identical. If they have different locale data, you may find
that indexes on text columns appear out-of-order and therefore
corrupt on the replica. See

Thanks Tom. All these systems are currently running Debian 11;
I dealt with the glibc locale issue a while ago.

Regards, Phil.