Thread: Re: Upgrade from 12.22 to 16
On Wed, 2025-06-11 at 11:51 +0530, Wasim Devale wrote: > Please suggest me to upgrade postgresql: 400 GB data with minimal downtime apart > from in place upgrade. We have it on red hat 9. What do you mean with "apart from"? Yours, Laurenz Albe
I mean to say that we do not want to do the in place upgrade also the other option of taking dump and restoration of it. If I can have any robust plan who all have worked on that then please suggest me.
Thanks,
Wasim
From: Laurenz Albe <laurenz.albe@cybertec.at>
Date: Wed, 11 Jun, 2025, 12:13 pm
Subject: Re: Upgrade from 12.22 to 16
To: Wasim Devale <wasimd60@gmail.com>, Pgsql-admin <pgsql-admin@lists.postgresql.org>
On Wed, 2025-06-11 at 11:51 +0530, Wasim Devale wrote:
> Please suggest me to upgrade postgresql: 400 GB data with minimal downtime apart
> from in place upgrade. We have it on red hat 9.
What do you mean with "apart from"?
Yours,
Laurenz Albe
You can use logical replication if new version of your postgres is on other host.
Best regards!
Domen Šetar |
From: Wasim Devale <wasimd60@gmail.com>
Sent: Wednesday, June 11, 2025 8:54 AM
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16
I mean to say that we do not want to do the in place upgrade also the other option of taking dump and restoration of it. If I can have any robust plan who all have worked on that then please suggest me.
Thanks,
Wasim
---------- Forwarded message ---------
From: Laurenz Albe <laurenz.albe@cybertec.at>
Date: Wed, 11 Jun, 2025, 12:13 pm
Subject: Re: Upgrade from 12.22 to 16
To: Wasim Devale <wasimd60@gmail.com>, Pgsql-admin <pgsql-admin@lists.postgresql.org>
On Wed, 2025-06-11 at 11:51 +0530, Wasim Devale wrote:
> Please suggest me to upgrade postgresql: 400 GB data with minimal downtime apart
> from in place upgrade. We have it on red hat 9.
What do you mean with "apart from"?
Yours,
Laurenz Albe
Attachment
I mean to say that we do not want to do the in place upgrade
also the other option of taking dump and restoration of it. If I can have any robust plan who all have worked on that then please suggest me.
Thanks,
Wasim---------- Forwarded message ---------
From: Laurenz Albe <laurenz.albe@cybertec.at>
Date: Wed, 11 Jun, 2025, 12:13 pm
Subject: Re: Upgrade from 12.22 to 16
To: Wasim Devale <wasimd60@gmail.com>, Pgsql-admin <pgsql-admin@lists.postgresql.org>
On Wed, 2025-06-11 at 11:51 +0530, Wasim Devale wrote:
> Please suggest me to upgrade postgresql: 400 GB data with minimal downtime apart
> from in place upgrade. We have it on red hat 9.
What do you mean with "apart from"?
Yours,
Laurenz Albe
Hope this below mentionsed on the restrictions to be useful on the database schema and DDL commands are not replicated
29.7. Restrictions # Logical replication currently has the following restrictions or missing functionality. These might be addressed in future releases. The …Another useful link on enabling replication
Real-World Use Case 2: E-commerce Platforms Use Case: An e-commerce platform uses logical replication to keep the data in sync between the main database (handling customer transactions) and a separate reporting database (used for analytics).This ensures that the system can generate real-time reports and insights without affecting the performance of the website or app.From: Wasim Devale <wasimd60@gmail.com>
Sent: Saturday, June 14, 2025 8:23 PM
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16
You don't often get email from wasimd60@gmail.com. Learn why this is importantCaution: This email was sent from an external source. Please verify the sender’s identity before clicking links or opening attachments.Thanks everyone.
Is there the restriction in logical replication because the database we have has all of it shown in the screenshot.
On Wed, 11 Jun, 2025, 8:59 pm Ron Johnson, <ronljohnsonjr@gmail.com> wrote:On Wed, Jun 11, 2025 at 2:57 AM Domen Šetar <domen.setar@izum.si> wrote:You can use logical replication if new version of your postgres is on other host.
Are you sure? There _shouldn't_ be any problem with replicating to a new instance on the same machine.--Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.<Redacted> lobster!
--
Sent: Monday, June 16, 2025 7:10:22 PM
To: DINESH NAIR <Dinesh_Nair@iitmpravartak.net>
Cc: Wasim Devale <wasimd60@gmail.com>; Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16
Hope this below mentionsed on the restrictions to be useful on the database schema and DDL commands are not replicated
29.7. Restrictions # Logical replication currently has the following restrictions or missing functionality. These might be addressed in future releases. The …Another useful link on enabling replication
Real-World Use Case 2: E-commerce Platforms Use Case: An e-commerce platform uses logical replication to keep the data in sync between the main database (handling customer transactions) and a separate reporting database (used for analytics).This ensures that the system can generate real-time reports and insights without affecting the performance of the website or app.From: Wasim Devale <wasimd60@gmail.com>
Sent: Saturday, June 14, 2025 8:23 PM
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16
You don't often get email from wasimd60@gmail.com. Learn why this is importantCaution: This email was sent from an external source. Please verify the sender’s identity before clicking links or opening attachments.Thanks everyone.
Is there the restriction in logical replication because the database we have has all of it shown in the screenshot.
On Wed, 11 Jun, 2025, 8:59 pm Ron Johnson, <ronljohnsonjr@gmail.com> wrote:On Wed, Jun 11, 2025 at 2:57 AM Domen Šetar <domen.setar@izum.si> wrote:You can use logical replication if new version of your postgres is on other host.
Are you sure? There _shouldn't_ be any problem with replicating to a new instance on the same machine.--Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.<Redacted> lobster!
--
Can you help outDAVID OKEAMAH,DEVELOPERFrom: Gaspare Boscarino, P.Eng. <gaspare.boscarino@theoremasystems.com>
Sent: Monday, June 16, 2025 7:10:22 PM
To: DINESH NAIR <Dinesh_Nair@iitmpravartak.net>
Cc: Wasim Devale <wasimd60@gmail.com>; Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16Hello Wasim,I suggest the logical replication approach. As mentioned before in this thread, there are some limitations like DDL propagation, the need for primary keys, etc. However, those constraints are not problematic and if planned properly the result is excellent. I have used logical replication many times for databases with TB of data.Thank you.Regards,GaspareOn Sun, Jun 15, 2025 at 9:43 PM DINESH NAIR <Dinesh_Nair@iitmpravartak.net> wrote:Hope this below mentionsed on the restrictions to be useful on the database schema and DDL commands are not replicated
29.7. Restrictions # Logical replication currently has the following restrictions or missing functionality. These might be addressed in future releases. The …Another useful link on enabling replication
Real-World Use Case 2: E-commerce Platforms Use Case: An e-commerce platform uses logical replication to keep the data in sync between the main database (handling customer transactions) and a separate reporting database (used for analytics).This ensures that the system can generate real-time reports and insights without affecting the performance of the website or app.From: Wasim Devale <wasimd60@gmail.com>
Sent: Saturday, June 14, 2025 8:23 PM
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Upgrade from 12.22 to 16
You don't often get email from wasimd60@gmail.com. Learn why this is importantCaution: This email was sent from an external source. Please verify the sender’s identity before clicking links or opening attachments.Thanks everyone.
Is there the restriction in logical replication because the database we have has all of it shown in the screenshot.
On Wed, 11 Jun, 2025, 8:59 pm Ron Johnson, <ronljohnsonjr@gmail.com> wrote:On Wed, Jun 11, 2025 at 2:57 AM Domen Šetar <domen.setar@izum.si> wrote:You can use logical replication if new version of your postgres is on other host.
Are you sure? There _shouldn't_ be any problem with replicating to a new instance on the same machine.--Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.<Redacted> lobster!
--Gaspare Boscarino, P.Eng., M.Eng., MASc.Founder and CEOTheorema Systems Inc.www.theoremasystems.com | +1 604-765-0121
--