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 1ukEfj-00HPO8-Tq for pgsql-general@arkaria.postgresql.org; Fri, 08 Aug 2025 04:25:40 +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 1ukEfi-00582F-IY for pgsql-general@arkaria.postgresql.org; Fri, 08 Aug 2025 04:25:38 +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 1ukEfh-005824-IZ for pgsql-general@lists.postgresql.org; Fri, 08 Aug 2025 04:25:38 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ukEfe-001NNG-1P for pgsql-general@lists.postgresql.org; Fri, 08 Aug 2025 04:25:37 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 01ECE1400098; Fri, 8 Aug 2025 00:25:32 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 08 Aug 2025 00:25:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1754627131; x=1754713531; bh=sHjO8iIOqQQ3B1YoKcoeINVONRDno1tEU0ZCpWlzlsE=; b= jBF8JbYShSjTcNOQ5TlpyeG4U49B0sc+XNJgnwK6tk3iJb+sl1NO9vH4CNrjZb6A 2MaJNYEErYdsA2i2Duoqmzkfe+8GpS9kEdV3xO/A2MiWLG+ipwjjxfWFKvVFpTHC 5BR9Fyr6WaSglxNdDu5tryu8c+83KUmuH1p9zUMKM4QbLG40lcLXM/XG/syJsKhV noULbwpmLNveVc5c826gAvyNJpsuPNUnGlFrsoWtbZaBuKyxz0IGWsO7JyLpwS6s rvorEw0hRRi5/bD/1U688lkJ5/TWYs4WHgIMZPV8rznqU/ZkmfYjIYW+ykAu78PM BpfHn/hseagI7t1XFqJ00g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1754627131; x=1754713531; bh=s HjO8iIOqQQ3B1YoKcoeINVONRDno1tEU0ZCpWlzlsE=; b=XrMFtO7jUOKkGPoSP 6V6OJTfDF2y3Tw2zdJSYAuYzK1uR5GazO95R5pJt+VyH64cZRQlMsIpG3vLkQSLM is1KnGntX64gMGhW0rmMVhcY6tXQGRrHHIedliogGcbLhONgwJtte162I7OmrqAt 7SO0XVldVQQFyOQY+D/HwC7wMOHc26tYrACmR54GGbN3TuFMyHkPbaYRgup93TAU 2DLGch11zxk+GUBpURZE8fN3VAeg6hJ5rwy2lZPBRJvTvE6aCIVSf9V7R6r8EdRB 1CZ/G0t7KFeIQE/i56w7SPygHWs2yIPCOIcNH6uQC+yDGr6gwCTpgqe+MZMtOIdf O3AXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvddvkeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiedvhfeiheehge euieeljeeitedtjeehudegfeelkedvleekhedtgfeiffefkedunecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepshhpgihlhiihuddvfeesghhmrghilhdrtghomhdprhgtphhtth hopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhr gh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Aug 2025 00:25:31 -0400 (EDT) Message-ID: Date: Thu, 7 Aug 2025 21:25:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Questions about the continuity of WAL archiving To: px shi , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/7/25 20:20, px shi wrote: > Hi, > There is a scenario: the current timeline of the PostgreSQL primary node > is 1, and the latest WAL file is 100. The standby node has also received > up to WAL file 100. However, the latest WAL file archived is only file > 80. If the primary node crashes at this point and the standby is > promoted to the new primary, archiving will resume from file 100 on > timeline 2. As a result, WAL files from 81 to 100 on timeline 1 will be > missing from the archive. What are you planning to do with the archived files? Also is not the case that once the primary crashes you are in a split brain case and can't really trust it's timeline anymore? > Is there a good solution to prevent this situation? > > Regards, > Pixian Shi -- Adrian Klaver adrian.klaver@aklaver.com