Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwBwN-0007xw-L9 for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2020 22:01:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwBwM-000455-9t for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2020 22:01:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwBwM-00044y-2V for pgsql-admin@lists.postgresql.org; Thu, 16 Jul 2020 22:01:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwBwJ-0006dt-Jx for pgsql-admin@postgresql.org; Thu, 16 Jul 2020 22:01:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06GM1Ats3464719; Thu, 16 Jul 2020 18:01:10 -0400 From: Tom Lane To: Murthy Nunna cc: "'pgsql-admin@postgresql.org'" Subject: Re: Replication Question In-reply-to: References: Comments: In-reply-to Murthy Nunna message dated "Thu, 16 Jul 2020 21:10:00 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3464717.1594936870.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Jul 2020 18:01:10 -0400 Message-ID: <3464718.1594936870@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Murthy Nunna writes: > I have a question about replication... Can I replicate to a server runni= ng different version of Linux OS (e.g Primary on RHEL 7 and stand-by on RH= EL 6.1). It's a little risky because of the possibility that the different OS versions have different behavior for the "same" LC_COLLATE setting, leading to different sort orders for text columns, which would make indexes on text columns incorrect in the standby's worldview. If you are only using "C" collation, or if you check that the collation(s) you use behave the same on both platforms, it should be OK. Also note that the hardware architecture had better be the same, eg no 32-bit-to-64-bit cases. But Postgres can detect that type of problem for itself, generally speaking. I emphasize collation hazards because we lack any reliable detection for collation mismatch. regards, tom lane