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 1rzuQY-007sHJ-OW for pgsql-docs@arkaria.postgresql.org; Thu, 25 Apr 2024 08:25:58 +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 1rzuQX-004gKJ-2T for pgsql-docs@arkaria.postgresql.org; Thu, 25 Apr 2024 08:25:57 +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 1rzuQW-004gKB-Pa for pgsql-docs@lists.postgresql.org; Thu, 25 Apr 2024 08:25:56 +0000 Received: from wfout6-smtp.messagingengine.com ([64.147.123.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzuQT-002qvR-OR for pgsql-docs@lists.postgresql.org; Thu, 25 Apr 2024 08:25:56 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id A9FF01C000DC; Thu, 25 Apr 2024 04:25:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 25 Apr 2024 04:25:51 -0400 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714033551; x= 1714119951; bh=B92lOXrSt19PKXPZU6KC5nxjzZVdQ6jWbBQY79ffX2k=; b=P 1axM33JKkaHnJDwuwYGydLYj0ddsou7jDHpjBfLFeOUxeVk6S/iFGMOdKaNlmkTw f0fCtVKxi38XonTr8KQ4mMbK/NEBWPQJrCIkEe6iZHO4cC1lcNBgSxO5TnlodWoH MBzhhJ5fCkQ1uuf1U8gp2KM8xF5nMtv0kphGQ3y3lHL6D9D8ekXJCG2AJVMrU8wH rA3f30KSaMRYRAkva2Zr/LsCdpWce3ccRLD5fYme28FdUHQK+/scmLNGVJmuV1u7 ptN0U5cYOLD/NhEJ1+iK9qt/k3pUVp8P/g4kGrnU4O4wKCGwI3qZeirbwEcxmNB7 VpwMF27s6psF2gNlcBzGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeljedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Apr 2024 04:25:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1714033549; bh=b0PdOrSMn9fD5pLKcjQioovhuqSjPPXye7zNkSf63bM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=UcoCCBzu7OGUMd4ZgPAHpvPlvfWNcPgk5mv3dwcEeBRmo728inDTe/Ak4069QNp02 OUOiUKTiIhqQl2tFAtRHgNHBTOgeFjQamlWlRgAhEPCzCNQJgXKRARZ8RWdWQmln+b IqJdDSoarBdc/w0JBp3QQEMb7J9QQuHuU19dk3RWrsQZgxfp1iQQB8P8KlzZdoIY69 H+Q/W8ummVYVLu1jFZP7KL+mo2rgXE2f0j5rUIpCVO8OV80TpF+xEN1yTC7GDPo0XE Oam/ttQXxHw4UJ15doMNm0syTOSPlNoMUjZ9WCD6d83WXNv+yOSDhLHWpsUkT8/Xg5 ajhWXmVitnzJQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 264F39B; Thu, 25 Apr 2024 10:25:49 +0200 (CEST) Date: Thu, 25 Apr 2024 10:25:49 +0200 From: Alvaro Herrera To: Peter Eisentraut Cc: Nicolas Seinlet , "pgsql-docs@lists.postgresql.org" Subject: Re: wal_init_zero / wal_recycle Message-ID: <202404250825.uotokqhaopxu@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6a09dfdd-9dc5-49f4-82ea-826162ed0d74@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Apr-24, Peter Eisentraut wrote: > On 24.04.24 10:08, Nicolas Seinlet wrote: > > It was not crystal clear to me that when wal_recycle is also ON , the > > recycled files are not filled with zeroes, because they are not > > considered as new. Could we add a sentence stating this? > > It currently says: > > wal_init_zero: "... causes new WAL files to be filled with zeroes ..." > > wal_recycle: "... avoiding the need to create new ones ..." > > I'm not sure where exactly to make that more clear. It may be too subtle. Maybe we could add a note at the end: wal_init_zero (boolean) If set to on (the default), this option causes new WAL files to be filled with zeroes. On some file systems, this ensures that space is allocated before we need to write WAL records. However, Copy-On-Write (COW) file systems may not benefit from this technique, so the option is given to skip the unnecessary work. If set to off, only the final byte is written when the file is created so that it has the expected size. >>Note that recycled WAL files are for these purposes not considered new.<< -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Pero la cosa no es muy grave ..." (le petit Nicolas -- René Goscinny)