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 1oHNi6-0004Ar-Oi for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 10:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oHNi5-0004qe-KS for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 10:59:13 +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 1oHNi4-0004pk-It for pgsql-hackers@lists.postgresql.org; Fri, 29 Jul 2022 10:59:13 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHNi1-0005sz-RP for pgsql-hackers@postgresql.org; Fri, 29 Jul 2022 10:59:11 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 228F15C00D3; Fri, 29 Jul 2022 06:59:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 29 Jul 2022 06:59:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1659092348; x=1659178748; bh=g bZmhcUP6do0pi8HuC5UGLyQMC0pA6/g3C4nuN/Sg0c=; b=xUZlEq9bDHxnraLrb t6j7SFchMejxfk0jIZW7ZJOes9EBXrMXvZk+41NgG02d/UoqGm/qtUAztrn/OlGp cw2Uecm5JfybTpYbz+FTO+PaciTJfQulbheZjhc+Hq7fCcsmIfqUp6v47JHIp4yB Vwk0VRwO6GArayyFXVv+++tylxqsVfRwQpHgzWO0hVdP8nlxof9bdn/th5VFGg+l cm3LcQgj+GsoiQ31nL3O7uXgtSYzpxJrzuOt2WwdYd+Acf749XgfkXrgFL9HB5wh kjeaTENfZG+YPouvaJ4urpiDo4TZK9/rfjj+URCqnnRlt+GF0WueZ9GcSz0RPURP 9ptKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddujedgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfggtggugfgjsehtke ertddttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduff dtffffheffhfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhep vghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhr gh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Jul 2022 06:59:07 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 59ADD376; Fri, 29 Jul 2022 12:59:03 +0200 (CEST) Date: Fri, 29 Jul 2022 12:59:03 +0200 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: thomas.munro@gmail.com, tgl@sss.pgh.pa.us, boekewurm+postgres@gmail.com, pgsql-hackers@postgresql.org Subject: Re: standby recovery fails (tablespace related) (tentative patch and discussion) Message-ID: <20220729105903.xuiw23kpcdphcvel@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220729.142008.340873830395327221.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Jul-29, Kyotaro Horiguchi wrote: > At Fri, 29 Jul 2022 11:27:01 +1200, Thomas Munro wrote in > > Maybe it just needs a replication slot? I see: > > > > ERROR: requested WAL segment 000000010000000000000003 has already been removed > > Agreed, I see the same. The same failure can be surely reproducible > by inserting wal-switch+checkpoint after taking backup [1]. And it is > fixed by the attached. WFM, pushed that way. I added a slot drop after the pg_stat_replication count check to be a little less intrusive. Thanks Matthias for reporting. (Note that the Cirrus page has a download link for the complete logs as artifacts). -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I'm always right, but sometimes I'm more right than other times." (Linus Torvalds)