agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedMigration from CentOS7 to RHEL red hat Linux
6+ messages / 6 participants
[nested] [flat]
* Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-26 06:20 Wasim Devale <wasimd60@gmail.com>
0 siblings, 2 replies; 6+ messages in thread
From: Wasim Devale @ 2024-07-26 06:20 UTC (permalink / raw)
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>; pgsql-admin
Hi Everyone
I want primary and secondary running on CentOS7 in sync with primary and
secondary running on RHEL. Is it possible by any chance that postgresql
allows.
I have done some analysis and came to know that Kafka tool can do this but
any provision from postgresql?
Thanks,
Wasim
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-26 13:59 Ron Johnson <ronljohnsonjr@gmail.com>
parent: Wasim Devale <wasimd60@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Ron Johnson @ 2024-07-26 13:59 UTC (permalink / raw)
To: pgsql-admin
On Fri, Jul 26, 2024 at 2:20 AM Wasim Devale <wasimd60@gmail.com> wrote:
> Hi Everyone
>
> I want primary and secondary running on CentOS7 in sync with primary and
> secondary running on RHEL. Is it possible by any chance that postgresql
> allows.
>
Technically, yes, but I recommend against that because CentOS7 and
the unspecified RHEL version might have different glibc versions (thus
different collations, and so PKs, FKs, queries, etc might fail).
OTOH, *logical* replication would work just fine between CentOS7 and your
unspecified RHEL version. (Lots of metadata updates would complicate that,
though.)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-26 14:22 Tom Lane <tgl@sss.pgh.pa.us>
parent: Wasim Devale <wasimd60@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2024-07-26 14:22 UTC (permalink / raw)
To: Wasim Devale <wasimd60@gmail.com>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Wasim Devale <wasimd60@gmail.com> writes:
> I want primary and secondary running on CentOS7 in sync with primary and
> secondary running on RHEL. Is it possible by any chance that postgresql
> allows.
If you mean you want to sync something on CentOS7 with something on
RHEL8 or RHEL9, that's pretty dangerous because glibc's collations
will not be the same [1]. You might get away with doing logical
replication, but don't try physical replication.
regards, tom lane
[1] https://wiki.postgresql.org/wiki/Locale_data_changes
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-30 12:34 Muhammad Waqas <waqas.m@bitnine.net>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Muhammad Waqas @ 2024-07-30 12:34 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Wasim Devale <wasimd60@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
yes you can configure
1 option is to configure stream replication but in such scenario you can
only perform fail-over.
2 option is to configure repmgr in which you can perform switchover in
postgreSQL
Regards,
Muhammad Waqas
Bitnine
2024년 7월 26일 (금) 오후 7:22, Tom Lane <tgl@sss.pgh.pa.us>님이 작성:
> Wasim Devale <wasimd60@gmail.com> writes:
> > I want primary and secondary running on CentOS7 in sync with primary and
> > secondary running on RHEL. Is it possible by any chance that postgresql
> > allows.
>
> If you mean you want to sync something on CentOS7 with something on
> RHEL8 or RHEL9, that's pretty dangerous because glibc's collations
> will not be the same [1]. You might get away with doing logical
> replication, but don't try physical replication.
>
> regards, tom lane
>
> [1] https://wiki.postgresql.org/wiki/Locale_data_changes
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-30 13:35 Scott Ribe <scott_ribe@elevated-dev.com>
parent: Muhammad Waqas <waqas.m@bitnine.net>
0 siblings, 1 reply; 6+ messages in thread
From: Scott Ribe @ 2024-07-30 13:35 UTC (permalink / raw)
To: Muhammad Waqas <waqas.m@bitnine.net>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Wasim Devale <wasimd60@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
> On Jul 30, 2024, at 6:34 AM, Muhammad Waqas <waqas.m@bitnine.net> wrote:
>
> 1 option is to configure stream replication but in such scenario you can only perform fail-over.
To be a little pedantic, you *can* perform switchover, but there are a number of steps to it, and I wouldn't recommend trying it.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Migration from CentOS7 to RHEL red hat Linux
@ 2024-07-30 13:39 SOzcn <selahattinozcnma@gmail.com>
parent: Scott Ribe <scott_ribe@elevated-dev.com>
0 siblings, 0 replies; 6+ messages in thread
From: SOzcn @ 2024-07-30 13:39 UTC (permalink / raw)
To: Scott Ribe <scott_ribe@elevated-dev.com>; +Cc: Muhammad Waqas <waqas.m@bitnine.net>; Tom Lane <tgl@sss.pgh.pa.us>; Wasim Devale <wasimd60@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Hello,
You don't need any complex steps.
Just made streaming replication. If you want to migrate your database from
centos to Redhat, close the apps and then make a failover on your replica
server.
Have a nice day.
Scott Ribe <scott_ribe@elevated-dev.com>, 30 Tem 2024 Sal, 16:35 tarihinde
şunu yazdı:
> > On Jul 30, 2024, at 6:34 AM, Muhammad Waqas <waqas.m@bitnine.net> wrote:
> >
> > 1 option is to configure stream replication but in such scenario you can
> only perform fail-over.
>
> To be a little pedantic, you *can* perform switchover, but there are a
> number of steps to it, and I wouldn't recommend trying it.
>
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2024-07-30 13:39 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-26 06:20 Migration from CentOS7 to RHEL red hat Linux Wasim Devale <wasimd60@gmail.com>
2024-07-26 13:59 ` Ron Johnson <ronljohnsonjr@gmail.com>
2024-07-26 14:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2024-07-30 12:34 ` Muhammad Waqas <waqas.m@bitnine.net>
2024-07-30 13:35 ` Scott Ribe <scott_ribe@elevated-dev.com>
2024-07-30 13:39 ` SOzcn <selahattinozcnma@gmail.com>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox