pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Murthy Nunna <mnunna@fnal.gov>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Replication Question
Date: Thu, 16 Jul 2020 18:01:10 -0400
Message-ID: <3464718.1594936870@sss.pgh.pa.us> (raw)
In-Reply-To: <DM6PR09MB3386282980E4FDF4429A0A18B87F0@DM6PR09MB3386.namprd09.prod.outlook.com>
References: <DM6PR09MB3386282980E4FDF4429A0A18B87F0@DM6PR09MB3386.namprd09.prod.outlook.com>

Murthy Nunna <mnunna@fnal.gov> writes:
> I have a question about replication... Can I replicate to a server running different version of Linux OS (e.g Primary on RHEL 7 and stand-by on RHEL 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






view thread (2+ messages)

Message-ID: <3464718.1594936870@sss.pgh.pa.us>
Permalink:  ../3464718.1594936870@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3464718.1594936870@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mnunna@fnal.gov
  Subject: Re: Replication Question
  In-Reply-To: <3464718.1594936870@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