Re: Upgrade for primary standby config

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Siddhartha Jain <siddharthajain92(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Upgrade for primary standby config
Date: 2025-01-03 08:21:27
Message-ID: a425ebfe9694e6b8a410462e7eccdd3dc1a8ba49.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 2025-01-03 at 06:21 +0530, Siddhartha Jain wrote:
> Please provide me with the high level steps for upgrade in postgres from 11 to 15 version
> for primary-standby configuration setup.

You cannot use a streaming replication standby server; you have to use logical replication.

- set up a logical replication standby server
- wait until replication has caught up
- stop your application
- set the sequences on the subscriber (they are not replicated)
- drop the subscription
- make the application run with the new database

I recommend that you use pg_upgrade rather than logical replication.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2025-01-03 08:31:39 Re: Upgrade for primary standby config
Previous Message Ron Johnson 2025-01-03 07:27:20 Re: Do we perform maintenance on pg_catalog tables