public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christophe Pettus <[email protected]>
To: Subhash Udata <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: [email protected]
Subject: Re: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication
Date: Sun, 24 Nov 2024 09:04:03 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAD=40Z3prwhLAedetocCu3jFvHSBP44V6O9d6CXjvzLTw7eOUQ@mail.gmail.com>
References: <CAD=40Z3Rvbx46SxYBBdLvgSObXCP+Firszz++rDTXmGX795D2Q@mail.gmail.com>
	<[email protected]>
	<CAD=40Z1wJ7mBej9=Yqfo_1m-eOV61E=s6yDjZSaTBESbGunBUA@mail.gmail.com>
	<[email protected]>
	<CAD=40Z3prwhLAedetocCu3jFvHSBP44V6O9d6CXjvzLTw7eOUQ@mail.gmail.com>



> On Nov 24, 2024, at 08:51, Subhash Udata <[email protected]> wrote:
> However, my concern lies in the fact that we are working with production servers, where downtime is not acceptable.

There is no way to upgrade community PostgreSQL, either to a new minor version or a new major version, with absolute zero downtime.

To do a minor version upgrade such as this, the only thing that is required is to restart the server with the new binaries.  While this does require a service interruption, it's quite short, and is not significantly longer than the interruption required to do a failover.  You can do the primary and secondary in either order, although upgrading the primary first is probably the safest route.  You don't have to switch the primary / secondary roles in this case, nor rebuild the secondary server using pg_basebackup.





view thread (9+ 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: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication
  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