Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDOrM-001ubp-TS for pgsql-general@arkaria.postgresql.org; Wed, 13 Dec 2023 13:01:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rDOrL-00EKGL-Ia for pgsql-general@arkaria.postgresql.org; Wed, 13 Dec 2023 13:01:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDOIn-00E2NO-7N for pgsql-general@lists.postgresql.org; Wed, 13 Dec 2023 12:25:25 +0000 Received: from mrw-1.mail.tiscali.it ([195.130.225.201]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDOIk-00BmwN-PV for pgsql-general@postgresql.org; Wed, 13 Dec 2023 12:25:24 +0000 Received: from [10.39.80.30] by mrw-1 with esmtp (Exim) id 1rDOIj-004TmL-1L; Wed, 13 Dec 2023 12:25:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tiscali.it; s=mail; h=Message-ID:Subject:To:From:Date:Content-Type:MIME-Version:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6vGum+Dv1Ko4khGBAqsz3v083MT3Ml3TXTAXcuo4nUU=; b=Lug4NPf1f0ni0jBQGAwDszwiQS AMTL3+qAwNZKUBOYaoHinD2/wQ/inmKXH0+MXMlYUoUMbl0Q1xb7H0jov1q4LIc3F3Qr7Yt8vYhXZ VA0YeP9AeMWKbRrnT1XlNr/O26VRUSK+0emV806TwYsdEhhfOmk39crhN44H4Ux+9GR4=; Received: from rc-13.mc.tiscali.sys ([10.39.75.133]:39054 helo=mail.tiscali.it) by mrl-2.mail.tiscali.sys with esmtp (Exim 4.89) (envelope-from ) id 1rDOIh-00AD29-3p for pgsql-general@postgresql.org; Wed, 13 Dec 2023 12:25:19 +0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_3f50061925ebb6b79b81442c5a93b0c6" Date: Wed, 13 Dec 2023 13:25:18 +0100 From: marco.ptz@tiscali.it To: pgsql-general Subject: How to Straming replication chatch up from archive Message-ID: X-Sender: marco.ptz@tiscali.it X-Originating-IP: 151.81.184.120 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_3f50061925ebb6b79b81442c5a93b0c6 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 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 --=_3f50061925ebb6b79b81442c5a93b0c6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
Hi,
we have a doubt interpreting documentation. We have a 9.6 in= stallation master+stand-by in streaming replication.
Master database i= s in archive mode and WAL archive destination (NFS) is mounted in both mast= er 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 contin= uous archiving, the server might recycle old WAL segments before the standb= y has received them.
If this occurs, the standby will need to be rein= itialized 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 n= ot required, since the standby can always use the archive to catch up provi= ded it retains enough segments.



if the maste= r overwrite the wal BEFORE they are sent to the standby via replication, do= es the standby automatically start looking in WAL archive = destination?
Or this step have to be made by hand?


re= gards and thanks in advance
MP
--=_3f50061925ebb6b79b81442c5a93b0c6--