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 1lUN5a-00028X-Vx for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 05:20:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUN5Z-0004RW-Np for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 05:20:21 +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 1lUN5Z-0004RP-H8 for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 05:20:21 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUN5X-00017F-DY for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 05:20:20 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 531F0580883; Thu, 8 Apr 2021 01:20:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 08 Apr 2021 01:20:18 -0400 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= fm2; bh=+niYCkFdMOARncEPnBI0mnn1m3AjQlKb+8KXviXySdw=; b=dp8+yhOx 8B854x+1UqseGrte3S/BwIAS3lTdg6mVqxSMJtQ/DK1MeK8UmeGdowy2K+eh27R1 d9m25wueHGABdAYNjZFSyFBntmRuiDhgPBD4j22d/JMN3zjZDzVRWxRJO3prfeQZ V9h7bCrEiczLKeLyixM69xoPyDofxbwaleJaYQI0qtnCN9XxKlhspKZCKcWVd64Y uLYAq+pWrAT7AF8TIgbewZosEdJ7TjSCOPD4ZEYFcsBSAqcQigQ0RKvOc/Ew9yW6 uFBKKIfxW+s8nc2IHrClQDioUlON5NgJ8gnQmQnThNGWp5A5/xELVbOx3Vy+lEo6 2+wyqSXGTEMA4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejkedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepueffhfejieeuueffgedvudekgeeltdeviedvieeufeei ieevgfetheeufeethedvnecukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 19D4D24005B; Thu, 8 Apr 2021 01:20:17 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4A89E2A07B4; Thu, 8 Apr 2021 01:20:14 -0400 (-04) Date: Thu, 8 Apr 2021 01:20:14 -0400 From: Alvaro Herrera To: yuzuko Cc: Tomas Vondra , David Steele , Kyotaro Horiguchi , Justin Pryzby , Daniel Gustafsson , Amit Langote , Masahiko Sawada , Laurenz Albe , PostgreSQL Hackers , Greg Stark Subject: Re: Autovacuum on partitioned table (autoanalyze) Message-ID: <20210408052014.GA28806@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210408032235.GA6842@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Apr-07, Alvaro Herrera wrote: > OK, I bit the bullet and re-did the logic in the way I had proposed > earlier in the thread: do the propagation on the collector's side, by > sending only the list of ancestors: the collector can read the tuple > change count by itself, to add it to each ancestor. This seems less > wasteful. Attached is v16 which does it that way and seems to work > nicely under my testing. Pushed with this approach. Thanks for persisting with this. -- Álvaro Herrera Valdivia, Chile