Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Hlt-0005kS-JA for pgsql-admin@arkaria.postgresql.org; Tue, 11 Aug 2020 00:04:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5Hls-0007pS-HD for pgsql-admin@arkaria.postgresql.org; Tue, 11 Aug 2020 00:04:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Hls-0007pL-95 for pgsql-admin@lists.postgresql.org; Tue, 11 Aug 2020 00:04:04 +0000 Received: from impout009aa.msg.chrl.nc.charter.net ([47.43.20.33] helo=impout009.msg.chrl.nc.charter.net) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5Hll-00088u-UP for pgsql-admin@lists.postgresql.org; Tue, 11 Aug 2020 00:04:03 +0000 Received: from cerberus.crazybean.net ([71.11.29.254]) by cmsmtp with ESMTP id 5HlkkwA1E2HYJ5HlkklI3Z; Tue, 11 Aug 2020 00:03:57 +0000 Authentication-Results: crazybean.net; none X-Authority-Analysis: v=2.3 cv=AKi/Lllh c=1 sm=1 tr=0 a=GkUsAQdcAzAk0MT19QAIRQ==:117 a=GkUsAQdcAzAk0MT19QAIRQ==:17 a=xqWC_Br6kY4A:10 a=y4yBn9ojGxQA:10 a=9A04_1hRIy75nayShJUA:9 a=gccKkX7nmdU_1HLB:21 a=xyUZbGvVrB6h-FHJ:21 a=QEXdDO2ut3YA:10 a=ZSH16RtyNNCAJnLAkSkA:9 a=vSKGpTtfOH4I5wNe:21 a=cemcc9Djn0TpLz0s:21 a=mrOn-mu5IF4xwYkm:21 a=_W_S_7VecoQA:10 Received: from [IPv6:2001:470:e117:4:e93c:9e9a:f96d:644e] ( [2001:470:e117:4:e93c:9e9a:f96d:644e]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id e1e2d2f3 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 10 Aug 2020 20:03:55 -0400 (EDT) From: Rui DeSousa Message-Id: <8C31D73B-BD43-42FC-A8C5-87DA351BA155@crazybean.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_AB1795E4-2570-4F7B-BCCB-E87EA412D329" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: Recovery from WAL archives not advancing timeline? Date: Mon, 10 Aug 2020 20:03:54 -0400 In-Reply-To: Cc: Ian Lawrence Barwick , Pgsql-admin To: Don Seiler References: X-Mailer: Apple Mail (2.3608.120.23.2.1) X-CMAE-Envelope: MS4wfNGgVyIV1T28zOL6A1MXC23v9eCmnGdJ+zmnYA/v2HG0CNlNOtPhavxZxtJRtsKxUH6Tqa8qJD6ZgnCDDpikG3EjF8dVV/CNRyeZIe+dDn6X3Upa3Uh0 hy+H7wl1kNrjMuO3Nf3Bka6Za1cmAxzqQdh95Yv26/FKFFZJeGQ5GwDnBLw80WtfqigVAZe0yvZLloV+SvV3LU+g8ndWfB/uLDfZmvNUtXRpZdhu0Am8I6FV WRIn8ZqELueaNUyVgtPDWQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_AB1795E4-2570-4F7B-BCCB-E87EA412D329 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 10, 2020, at 4:28 PM, Don Seiler wrote: >=20 > I'm following up to see if anyone else would categorize this as a bug. = It renders my old primaries dead until I do a restore on them. No, I don=E2=80=99t think so. When you promote a standby; the primary = will have to be restored or rewinded using pg_rewind to turn it into a = replica. Another approach is to cleanly shutdown the primary and then = you can turn it into a replica without doing a restore or pg_rewind.=20 --Apple-Mail=_AB1795E4-2570-4F7B-BCCB-E87EA412D329 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Aug 10, 2020, at 4:28 PM, Don Seiler <don@seiler.us> = wrote:

I'm following up to see = if anyone else would categorize this as a bug. It renders my old = primaries dead until I do a restore on = them.

No, I don=E2=80=99t think so.  When you = promote a standby; the primary will have to be restored or rewinded = using pg_rewind to turn it into a replica.  Another approach is to = cleanly shutdown the primary and then you can turn it into a replica = without doing a restore or pg_rewind. 

= --Apple-Mail=_AB1795E4-2570-4F7B-BCCB-E87EA412D329--