Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di8C8-0002I2-2h for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Aug 2017 23:57:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1di8C7-0007n6-Gz for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Aug 2017 23:57:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1di8C7-0007k8-0f; Wed, 16 Aug 2017 23:57:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1di8Bz-0002Wp-SU; Wed, 16 Aug 2017 23:57:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7GNvYd5001763; Wed, 16 Aug 2017 19:57:34 -0400 From: Tom Lane To: Michael Paquier cc: Tatsuo Ishii , jobin.augustine@openscg.com, Andres Freund , Noah Misch , Peter Eisentraut , PostgreSQL mailing lists , PostgreSQL mailing lists Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken In-reply-to: References: <20170813200438.dua2s2blhtlutfbz@alap3.anarazel.de> <21794.1502657248@sss.pgh.pa.us> <20170817.081304.1301525792531521883.t-ishii@sraoss.co.jp> Comments: In-reply-to Michael Paquier message dated "Thu, 17 Aug 2017 08:41:38 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1761.1502927854.1@sss.pgh.pa.us> Date: Wed, 16 Aug 2017 19:57:34 -0400 Message-ID: <1762.1502927854@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > On Thu, Aug 17, 2017 at 8:13 AM, Tatsuo Ishii 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