public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Siddhartha Jain <[email protected]>
To: [email protected]
Subject: Re: Upgrade for primary standby config
Date: Fri, 03 Jan 2025 09:21:27 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CALOSYAdPd_ADwKLht-Y=i-10UX4AR3BkpZqBR1_ubFu_8=7dkQ@mail.gmail.com>
References: <CALOSYAdPd_ADwKLht-Y=i-10UX4AR3BkpZqBR1_ubFu_8=7dkQ@mail.gmail.com>

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





view thread (3+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Upgrade for primary standby config
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox