pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: marco.ptz@tiscali.it
To: pgsql-general <pgsql-general@postgresql.org>
Subject: How to  Straming replication chatch up from archive
Date: Wed, 13 Dec 2023 13:25:18 +0100
Message-ID: <cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it> (raw)

  
Hi,
we have a doubt interpreting documentation. We have a 9.6
installation master+stand-by in streaming replication.
Master database
is in archive mode and WAL archive destination (NFS) is mounted in both
master and stand-by servers.

The question is regarding this part of
documentation:
(https://www.postgresql.org/docs/9.6/warm-standby.html)

If you use
streaming replication without file-based continuous archiving, the
server might recycle old WAL segments before the standby has received
them. 
If this occurs, the standby will need to be reinitialized from a
new base backup. You can avoid this by setting wal_keep_segments to a
value large enough to
 ensure that WAL segments are not recycled too
early, or by configuring a replication slot for the standby. IF YOU SET
UP A WAL ARCHIVE THAT'S ACCESSIBLE FROM THE STANDBY,
 THESE SOLUTIONS
ARE NOT REQUIRED, SINCE THE STANDBY CAN ALWAYS USE THE ARCHIVE TO CATCH
UP PROVIDED IT RETAINS ENOUGH SEGMENTS.

if the master overwrite the wal
BEFORE they are sent to the standby via replication, does the standby
AUTOMATICALLY start looking in WAL archive destination?
Or this step
have to be made by hand?

regards and thanks in advance
MP 

view thread (2+ messages)  latest in thread

Message-ID: <cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it>
Permalink:  ../cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it/
Also on:    postgresql.org/message-id/cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it

 · 

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: marco.ptz@tiscali.it
  Subject: Re: How to  Straming replication chatch up from archive
  In-Reply-To: <cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it>
  References: <cae1f08b2c966b9a3e9a641c944c21c0@tiscali.it>

* 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