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 1mpWfb-00051U-Nf for pgsql-docs@arkaria.postgresql.org; Tue, 23 Nov 2021 14:21:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mpWfa-0000Ig-LJ for pgsql-docs@arkaria.postgresql.org; Tue, 23 Nov 2021 14:21:14 +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 1mpWfZ-0000BH-Jw for pgsql-docs@lists.postgresql.org; Tue, 23 Nov 2021 14:21:14 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpWfW-0003xY-Rw for pgsql-docs@lists.postgresql.org; Tue, 23 Nov 2021 14:21:12 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3980F3200C10; Tue, 23 Nov 2021 09:21:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Nov 2021 09:21:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=epUNzA1f1/llzyOaLhR5UQtq1v8hPcuSQV84fijQDN8=; b=IOB4xWSS i9QgCve8Yo3C3xjSRbuDQkokR6lPjkD5mEO0INL8hc8KfnIAsTq/7+o2wutX7+7w Fs5IPOIZux+PFqJxMw8Irib4RGF1NgxPFqPaUuLU/OJo6b70c3EDo2manglh6C92 sVcu9ezqxQi8s7WGFN+ADZFo+Q0bHcI1TakVwwEOgMlzfpRLLOULqpO5O52K0Ofe sFxk5K8dXgZ7xPVwHWWWHDv569MttsKEay1qSeWEUtW5RyfPDG0jnf7ly2I2ntCX j0CuOLYjVNY2a4EONqIaoLIqyn2ua6bvgBX3zJh7TpurXQh0dsfltdRfByZrSOHB 6TvyzndIdPW1zQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeeigdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjsehtkeertd dttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvges rghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeefudelkeetiefgge eltddvvddvtdeludfgfefhtdeiveetfedtueeuheduuedvleenucffohhmrghinhepvghn thgvrhhprhhishgvuggsrdgtohhmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges rghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Nov 2021 09:21:08 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BB6A42A080B; Tue, 23 Nov 2021 11:21:05 -0300 (-03) Date: Tue, 23 Nov 2021 11:21:05 -0300 From: Alvaro Herrera To: b1000101@pm.me, pgsql-docs@lists.postgresql.org Cc: Kyotaro Horiguchi Subject: Re: max_slot_wal_keep_size unit is not specified Message-ID: <202111231421.zybfdpc5pyln@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <163760291192.26193.10801700492025355788@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Nov-22, PG Doc comments form wrote: > The unit (I assume it's MB) of max_slot_wal_keep_size is not explicitly > specified in the docs. If it's intentional then please, disregards, but I've > not been able to deduct that from this page alone. Thanks! Well, that's embarrasing. I'll see about fixing it. It is a size-based unit. You would typically specify some unit (say, MB) together with the number; internally, because the way this works is in terms of whole files, it is rounded down to an integer number of WAL segments. If you don't specify a unit, it is taken to be a number of megabytes. I wonder why did we make it round down rather than up. Does this mean that if you have max_slot_wal_keep_size=8MB and wal segments of 16 MB, the slot gets invalidated with more than zero reserved segments? Thanks for reporting. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm impressed how quickly you are fixing this obscure issue. I came from MS SQL and it would be hard for me to put into words how much of a better job you all are doing on [PostgreSQL]." Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php