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 1mFkNs-00030x-MG for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Aug 2021 21:43:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mFkNr-0006ZO-Go for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Aug 2021 21:43:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFkNq-0006ZF-GK for pgsql-hackers@lists.postgresql.org; Mon, 16 Aug 2021 21:43:03 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFkNm-0003mi-4S for pgsql-hackers@lists.postgresql.org; Mon, 16 Aug 2021 21:43:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 53F0E580383; Mon, 16 Aug 2021 17:42:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 16 Aug 2021 17:42:55 -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= fm3; bh=CEYmLP3cgk1xuDK6HKf4pAz7sU4a4TzauvBjvyi8uu4=; b=UzzigaSA +JSeGmtvDjZqm/hQepSWmPxboIZb67NMFhfaKEJ1l1NBq1tdi8fod0NAL/xbOBkF hDWTZADNa8AOMqMOeDg2ayk9EOYdw3Twtn5JqkWUIFNk6C2ySkA5STMJS7inliXP kVfk8WR5XCeDCk7HC0XvKG6en4oFDtoFaQBfEiyTJ08BI+WGtvKtl8dIR2HSRVhg y/4TEoIOv6EPngD6mQai0GANq8B45MzIOAsvMCj1DCenXu5nvlTLPaeyfLl070Za OJ1iM3NtC0Fg+aPpp2/XzYcGfZ3uCgJSWtVE8hKdmGT0x9GlLjBTOg5c6s2Lv2uu F6IdIqqYoFuy3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrledvucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcujfgv rhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtf frrghtthgvrhhnpefhieevvddtveeiuefhkedttdfhgffgjeefkeektdegheeluddtveef ffdvvdfgtdenucffohhmrghinhepphhoshhtghhrrdgvshdpvghnthgvrhhprhhishgvug gsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Aug 2021 17:42:51 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 39E3B2A099B; Mon, 16 Aug 2021 17:42:48 -0400 (-04) Date: Mon, 16 Aug 2021 17:42:48 -0400 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Andres Freund Cc: Kyotaro HORIGUCHI , yuzuko , Tomas Vondra , David Steele , Kyotaro Horiguchi , Justin Pryzby , Daniel Gustafsson , Amit Langote , Masahiko Sawada , Laurenz Albe , "pgsql-hackers@lists.postgresql.org" , Greg Stark Subject: Re: Autovacuum on partitioned table (autoanalyze) Message-ID: <202108162142.crk2myigb2ad@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202108161546.3zuouk76skr4@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Aug-16, Álvaro Herrera wrote: > Here's the reversal patch for the 14 branch. (It applies cleanly to > master, but the unused member of PgStat_StatTabEntry needs to be > removed and catversion bumped). I have pushed this to both branches. (I did not remove the item from the release notes in the 14 branch.) It upsets me to have reverted it, but after spending so much time trying to correct the problems, I believe it just wasn't salvageable within the beta-period code freeze constraints. I described the issues I ran into in earlier messages; I think a good starting point to re-develop this is to revert the reversal commit, then apply my patch at https://postgr.es/m/0794d7ca-5183-486b-9c5e-6d434867cecd@www.fastmail.com then do something about the remaining problems that were complained about. (Maybe: add an "ancestor OID" member to PgStat_StatTabEntry so that the collector knows to propagate counts from children to ancestors when the upd/ins/del counts are received. However, consider developing it as follow-up to Horiguchi-san's shmem pgstat rather than current pgstat implementation.) Thanks -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/