pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Shukla, Pranjal <pshukla@akamai.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Query on WAL Optimization and Streaming Replication
Date: Thu, 17 Mar 2022 14:19:52 +0100
Message-ID: <311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at> (raw)
In-Reply-To: <69E6DB22-F46D-4798-B47E-A69C5B52FA56@akamai.com>
References: <69E6DB22-F46D-4798-B47E-A69C5B52FA56@akamai.com>

On Thu, 2022-03-17 at 12:36 +0000, Shukla, Pranjal wrote:
> uring upgrades of our application, we generally shutdown all Secondary servers
> which are getting stream replicated from Primary Servers. This is to maintain
> a copy of database on other servers should
> we wish to revert (of course we take DB Backups too before starting the activity).
> After the application upgrade is done, when we start the secondary, often the
> replication is broken, and we need to
> again setup using pg_basebackup. How do we ensure that secondary is able to
> resume the replication without the need of base back up again?

There are three ways:

1. have a WAL archive and configure "restore_command" on the standby

2. set "wal_keep_size" on the primary high enough

3. use a replication slot

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (5+ messages)  latest in thread

Message-ID: <311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at>
Permalink:  ../311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at/
Also on:    postgresql.org/message-id/311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, pshukla@akamai.com
  Subject: Re: Query on WAL Optimization and Streaming Replication
  In-Reply-To: <311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at>
  References: <69E6DB22-F46D-4798-B47E-A69C5B52FA56@akamai.com> <311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at>

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

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