pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Tatsuo Ishii <ishii@sraoss.co.jp>
Cc: jobin.augustine@openscg.com, Andres Freund <andres@anarazel.de>
Cc: Noah Misch <noah@leadboat.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken
Date: Wed, 16 Aug 2017 19:57:34 -0400
Message-ID: <1762.1502927854@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqTz1RoDTJca=DqezTUuccoCZ2tAq0qzmCp7hs=s=t3yhw@mail.gmail.com>
References: <20170813200438.dua2s2blhtlutfbz@alap3.anarazel.de>
	<21794.1502657248@sss.pgh.pa.us>
	<CAHBggj_qnibwvJRK=+7pr5O3KdEfsGFrQ9J4JiehxBgF3jaoHA@mail.gmail.com>
	<20170817.081304.1301525792531521883.t-ishii@sraoss.co.jp>
	<CAB7nPqTz1RoDTJca=DqezTUuccoCZ2tAq0qzmCp7hs=s=t3yhw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, Aug 17, 2017 at 8:13 AM, Tatsuo Ishii <ishii@sraoss.co.jp> wrote:
>> Do we allow streaming replication among different OS?

> No. WAL is a binary format.

>> I thought it is
>> required that primary and standbys are same platform (in my
>> understanding this means the same hardware architecture and OS) in
>> streaming replication.

> Yep, I recall the same requirement.

In practice it's largely about architecture, I think.  You definitely
need the same endianness and floating-point format, which are hardware,
and you need the same MAXALIGN, which is partly hardware but in principle
could be chosen differently in different ABI conventions for the same
hardware.  (At least for non-alignment-picky hardware like Intel.
Alignment-picky hardware is likely going to dictate that choice too.)

We disclaim cross-OS portability partly because of the possible influence
of different ABI conventions, but it doesn't surprise me in the least if
in practice 64-bit Windows can interoperate with x86_64 Linux.  (Less sure
about the 32-bit case --- it looks like pg_config.h.win32 chooses
MAXALIGN 8 in all cases, which would mean 32-bit Windows is more likely to
interoperate with 64-bit Linux than 32-bit Linux.)

The thing that's really likely to bite you cross-platform is dependency
of textual index sort ordering on non-C locale definitions.  But that
wouldn't show up in a quick smoke test of replication ... and if you
really wanted, you could use C locale on both ends.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (51+ messages)  latest in thread

Message-ID: <1762.1502927854@sss.pgh.pa.us>
Permalink:  ../1762.1502927854@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1762.1502927854@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, ishii@sraoss.co.jp, andres@anarazel.de, noah@leadboat.com, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken
  In-Reply-To: <1762.1502927854@sss.pgh.pa.us>
  References: <20170813200438.dua2s2blhtlutfbz@alap3.anarazel.de> <21794.1502657248@sss.pgh.pa.us> <CAHBggj_qnibwvJRK=+7pr5O3KdEfsGFrQ9J4JiehxBgF3jaoHA@mail.gmail.com> <20170817.081304.1301525792531521883.t-ishii@sraoss.co.jp> <CAB7nPqTz1RoDTJca=DqezTUuccoCZ2tAq0qzmCp7hs=s=t3yhw@mail.gmail.com> <1762.1502927854@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox