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 1tBFs5-002k5m-GC for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Nov 2024 16:05:33 +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 1tBFs2-00FI4c-BB for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Nov 2024 16:05:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBFs1-00FI4F-8r for pgsql-hackers@lists.postgresql.org; Wed, 13 Nov 2024 16:05:30 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBFry-001gl2-D9 for pgsql-hackers@postgresql.org; Wed, 13 Nov 2024 16:05:27 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 91C97138066A; Wed, 13 Nov 2024 11:05:24 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 13 Nov 2024 11:05:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731513924; x=1731600324; bh=L iwcUKkIK29dZJ0n8uqmP6c+66QIS/KDbykxLs280d4=; b=ZqrVMWBT8iDe9ihaD sNaUcrz8j3qiE1UP6atCQG7W2Of1iOo/Qo8okx4fb9WF5C6EF7IZ8heJA/FLt/pA UQVLtiSVAm4fvMEHvha7eNROgZ2kSgbgZ10x1OAtrxSzEwKpeHDJB2bbL3g7Nm/s Jqy/ZsMAD1pXNw8A7uJRUwTyXWxSpx2NVJ8cJ9Z0FGISjpsA815vek3zjXsTA51N iVUK7qbCIm28FI7pSQSU/CEC5y3IHAFayJaMSQ+/ky0uoo6uFQDnPTJI0p5dLisz LcM4a7PTUyq1pUOVikKhCmBIPxMLWJeT2JAU81kd1ZX2iDMQ7djZwNTChwX/SrsW YsIgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddtgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhosggvrhhtmhhh rggrshesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Nov 2024 11:05:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1731513921; bh=wG4Ac53JKawtY9T7bDS9KATKL+5tDzdqiKci/6fh2Zs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=miSQN6aXIS6sWznHQD+EEznPb8vLSL8vnhzOrUMHFjDrucB9ctMyxhMhqaXX0lqdK CecWQRIoJtdvJU3esPNAodH/5gmrDPkLu5xHRRBi1lR4oJzyQvxx5XLc8An5HUq7En vKV0IEIksJfRkxx3/6VRzTHw6VUWbNH2e+4NM3P+sIjG6WPP/1E58r4AR3DW3IbVRc cv3ZGkz636348T91eZqVWeL7wy5vfxm7R2h66cuNqrXoHr4lCk1EJ2zuSl5/p3sRY9 bAxd7vGT3CHMklRzdUJSw/r20mdRGc2osAKcRKDTpOp2BGpsVuL22064Bt+UrHXjxE ezXe8jxaPEtWQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 58D5A9B; Wed, 13 Nov 2024 17:05:21 +0100 (CET) Date: Wed, 13 Nov 2024 17:05:21 +0100 From: Alvaro Herrera To: Robert Haas Cc: "pgsql-hackers@postgresql.org" Subject: Re: .ready and .done files considered harmful Message-ID: <202411131605.m66syq5i5ucl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, sorry for necro-posting here: On 2021-May-03, Robert Haas wrote: > I and various colleagues of mine have from time to time encountered > systems that got a bit behind on WAL archiving, because the > archive_command started failing and nobody noticed right away. We've recently had a couple of cases where the archiver hasn't been able to keep up on systems running 13 and 14 because of this problem, causing serious production outages. Obviously that's not a great experience. I understand that this has been significantly improved in branch 15 by commit beb4e9ba1652, the fix in this thread; we hypothesize that both these production problems wouldn't have occurred, if the users had been running the optimized pgarch.c code. However, that commit was not backpatched. I think that was the correct decision at the time, because it wasn't a trivial fix. It was significantly modified by 1fb17b190341 a month later, both to fix a critical bug as well as to make some efficiency improvements. Now that the code has been battle-tested, I think we can consider putting it into the older branches. I did a quick cherry-pick experiment, and I found that it backpatches cleanly to 14. It doesn't to 13, for lack of d75288fb27b8, which is far too invasive to backpatch, and I don't think we should rewrite the code so that it works on the previous state. Fortunately 13 only has one more year to live, so I don't feel too bad about leaving it as is. So, my question now is, would there be much opposition to backpatching beb4e9ba1652 + 1fb17b190341 to REL_14_STABLE? (On the other hand, we can always blame users for failing to implement WAL archiving "correctly" ... but from my perspective, this is an embarrasing Postgres problem, and one that's relatively easy to solve with very low risk.) Thanks, -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Para tener más hay que desear menos"