pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedStreaming replication between different OS
6+ messages / 4 participants
[nested] [flat]
* Streaming replication between different OS
@ 2021-02-22 06:17 Atul Kumar <akumar14871@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Atul Kumar @ 2021-02-22 06:17 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
Hi,
I have postgres 9.6 cluster running on Centos 6.8, so I just wanted to know
that can I configure streaming replication with same postgres version i.e
9.6 running on centos 7.
Suggestions are welcome as the Centos versions are different one is 6.8 and
second one is 7.
Also please let me know if there will be any challenge in case of failover.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Streaming replication between different OS
@ 2021-02-22 08:52 Ganesh Korde <ganeshakorde@gmail.com>
parent: Atul Kumar <akumar14871@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Ganesh Korde @ 2021-02-22 08:52 UTC (permalink / raw)
To: Atul Kumar <akumar14871@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Should not be a problem if both OS archtecture (32 bit/ 64 bit) are same.
On Mon, 22 Feb 2021, 11:48 am Atul Kumar, <akumar14871@gmail.com> wrote:
> Hi,
>
>
> I have postgres 9.6 cluster running on Centos 6.8, so I just wanted to
> know that can I configure streaming replication with same postgres version
> i.e 9.6 running on centos 7.
>
> Suggestions are welcome as the Centos versions are different one is 6.8
> and second one is 7.
>
> Also please let me know if there will be any challenge in case of failover.
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Streaming replication between different OS
@ 2021-02-22 15:36 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ganesh Korde <ganeshakorde@gmail.com>
0 siblings, 2 replies; 6+ messages in thread
From: Tom Lane @ 2021-02-22 15:36 UTC (permalink / raw)
To: Ganesh Korde <ganeshakorde@gmail.com>; +Cc: Atul Kumar <akumar14871@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
Ganesh Korde <ganeshakorde@gmail.com> writes:
> On Mon, 22 Feb 2021, 11:48 am Atul Kumar, <akumar14871@gmail.com> wrote:
>> I have postgres 9.6 cluster running on Centos 6.8, so I just wanted to
>> know that can I configure streaming replication with same postgres version
>> i.e 9.6 running on centos 7.
> Should not be a problem if both OS archtecture (32 bit/ 64 bit) are same.
The other thing you have to worry about is whether the collations you
use sort the same on both systems ... if they don't, you'll have
effectively-corrupt indexes on text columns on the standby.
According to
https://wiki.postgresql.org/wiki/Locale_data_changes
you should be okay for rhel/centos 6 to 7 migration unless you
use de_DE locale. But I don't know how thorughly that's been
checked.
Using logical not physical replication might be safer.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Streaming replication between different OS
@ 2021-02-22 16:22 Peter J. Holzer <hjp-pgsql@hjp.at>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 6+ messages in thread
From: Peter J. Holzer @ 2021-02-22 16:22 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 2021-02-22 10:36:56 -0500, Tom Lane wrote:
> The other thing you have to worry about is whether the collations you
> use sort the same on both systems ... if they don't, you'll have
> effectively-corrupt indexes on text columns on the standby.
>
> According to
>
> https://wiki.postgresql.org/wiki/Locale_data_changes
>
> you should be okay for rhel/centos 6 to 7 migration unless you
> use de_DE locale. But I don't know how thorughly that's been
> checked.
I wrote this little script:
https://git.hjp.at:3000/hjp/pgcollate/src/branch/master/pgcollate
It just creates a table with every valid Unicode codepoint (and a few
short strings) and dumps it in sorted order. The idea is that you run it
and both systems (or before and after an upgrade) and compare the
outputs. If they differ, text indexes are probably broken.
Note that it only checks the sort order of single codepoints thoroughly,
not that of longer strings. So even if the output is the same, the
collation may still be different. Since the number of possible
combinations is essentially infinite, a systematic check is impossible.
I would be happy to add additional strings, though, Especially if they
are known to cause trouble.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Streaming replication between different OS
@ 2021-02-22 17:32 Atul Kumar <akumar14871@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 6+ messages in thread
From: Atul Kumar @ 2021-02-22 17:32 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Ganesh Korde <ganeshakorde@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
Hi Tom,
As I am new to postgres, could you help me to in how to check collation and
what is de_DE locale ?
Regards
On Monday, February 22, 2021, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Ganesh Korde <ganeshakorde@gmail.com> writes:
> > On Mon, 22 Feb 2021, 11:48 am Atul Kumar, <akumar14871@gmail.com> wrote:
> >> I have postgres 9.6 cluster running on Centos 6.8, so I just wanted to
> >> know that can I configure streaming replication with same postgres
> version
> >> i.e 9.6 running on centos 7.
>
> > Should not be a problem if both OS archtecture (32 bit/ 64 bit) are same.
>
> The other thing you have to worry about is whether the collations you
> use sort the same on both systems ... if they don't, you'll have
> effectively-corrupt indexes on text columns on the standby.
>
> According to
>
> https://wiki.postgresql.org/wiki/Locale_data_changes
>
> you should be okay for rhel/centos 6 to 7 migration unless you
> use de_DE locale. But I don't know how thorughly that's been
> checked.
>
> Using logical not physical replication might be safer.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Streaming replication between different OS
@ 2021-02-22 17:58 Peter J. Holzer <hjp-pgsql@hjp.at>
parent: Atul Kumar <akumar14871@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Peter J. Holzer @ 2021-02-22 17:58 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 2021-02-22 23:02:12 +0530, Atul Kumar wrote:
> As I am new to postgres, could you help me to in how to check collation
show LC_COLLATE;
> and what is de_DE locale ?
The locale (i.e. language specific rules (sorting, formatting of
numbers, dates, etc.) for German ("de") as spoken in Germany ("DE").
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-02-22 17:58 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 06:17 Streaming replication between different OS Atul Kumar <akumar14871@gmail.com>
2021-02-22 08:52 ` Ganesh Korde <ganeshakorde@gmail.com>
2021-02-22 15:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-02-22 16:22 ` Peter J. Holzer <hjp-pgsql@hjp.at>
2021-02-22 17:32 ` Atul Kumar <akumar14871@gmail.com>
2021-02-22 17:58 ` Peter J. Holzer <hjp-pgsql@hjp.at>
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