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 1o8Nt7-0002oW-82 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 15:21:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8Ns7-0005wL-Dy for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 15:20:23 +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 1o8Ns7-0005wB-3g for pgsql-hackers@lists.postgresql.org; Mon, 04 Jul 2022 15:20:23 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Ns3-0004o6-UY for pgsql-hackers@lists.postgresql.org; Mon, 04 Jul 2022 15:20:21 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 68D31320027A; Mon, 4 Jul 2022 11:20:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 04 Jul 2022 11:20:15 -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=fm2; t=1656948014; x=1657034414; bh=l IeXVYrSFzFO+l/7Q+eY9Q0k/z6FUtUTgPI5BeiGTLc=; b=GDMEKid36lXWWk0VR jHeFYAtVZ6NeJP7XFVY4xDAE3zsjEp2vQpJybFzj2Ks5omDbsuQSZFrBYFugWcA2 3fi02yhHHMThQGRqQgNL3RGqlLE0APBlyPhySC0Ty5447Sqp4Hvov+bz9Ni4ikeJ ymLq4jY7O/ndq1bSi/vb/YHJUFN+KdppoS+ZXQEnfjxJ7jCGQmRCNqi8EMMf6iXA Mvfucj+jc5es1etdRMtHvSrf+bQEfB3i898dXTklhOuBdC75gJhVHEyYqtJH/WLs EboSFBUq2CIaxrkvXPZBBCCxFufY9h81qCKieDK3U62/oWWDBDYf9Moj7dQXCBJR 225nw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehledgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Jul 2022 11:20:14 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2001A35D; Mon, 4 Jul 2022 17:20:11 +0200 (CEST) Date: Mon, 4 Jul 2022 17:20:11 +0200 From: Alvaro Herrera To: Roberto Mello Cc: PostgreSQL Developers Subject: Re: doc: BRIN indexes and autosummarize Message-ID: <20220704152011.4rypgtgfu66rktkq@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 On 2022-Jun-28, Roberto Mello wrote: > Here's a patch to clarify the BRIN indexes documentation, particularly with > regards to autosummarize, vacuum and autovacuum. It basically breaks > down a big blob of a paragraph into multiple paragraphs for clarity, > plus explicitly tells how summarization happens manually or > automatically. [Some of] these additions are wrong actually. It says that autovacuum will not summarize new entries; but it does. If you just let the table sit idle, any autovacuum run that cleans the table will also summarize any ranges that need summarization. What 'autosummarization=off' means is that the behavior to trigger an immediate summarization of a range once it becomes full is not default. This is very different. As for the new s that you added, I'd say they're stylistically wrong. Each paragraph is supposed to be one fully contained idea; what these tags do is split each idea across several smaller paragraphs. This is likely subjective though. > On this topic... I'm not familiar with with the internals of BRIN > indexes and in backend/access/common/reloptions.c I see: > > { > "autosummarize", > "Enables automatic summarization on this BRIN index", > RELOPT_KIND_BRIN, > AccessExclusiveLock > }, > > Is the exclusive lock on the index why autosummarize is off by default? No. The lock level mentioned here is what needs to be taken in order to change the value of this option. > What would be the downside (if any) of having autosummarize=on by default? I'm not aware of any. Maybe we should turn it on by default. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/