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 1lUb0X-0002y4-34 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 20:12:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUb0V-0002EC-6c for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 20:12: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 1lUb0U-0002Da-Ds for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 20:12:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUb0N-0000ez-K6 for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 20:12:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id C4CFF5C004B; Thu, 8 Apr 2021 16:11:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 08 Apr 2021 16:11:53 -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=r4T5ZCWb7K0N9CfG+7pzybduRPmLwx61Gh1ZJizvbXs=; b=ORAByN+T TWScScZXZ5qJNuw3CJmHwvANnUqsN7sqYwlBw89k4rDLLHRp2cZG/UA8pTFGlsJt LRvMNkv3nt6ka6tzCoqojBAcnexwTjukBDhfUO5NZTy+wQ5pwkBj9D5NEqxfDfBb Fhwi47b690IHnRnT3XPRI2XZ+aLuqfDKIVV3plCun2BRsvOJlYzKB/0SC3pS5LDM 45sIbzHa6RrQccc/pF4W6vYWq01RaUCdmWGa5KTjwrZ+eicy3aSSACw5QpbKIv6g 7UGJgCZoY4P8z5m6J4XV1h2yqS6kedi9ZRgGLj7CQwzpEXgXc94/fHbaGU2F4r/2 2qqlkgZ9bBiamw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejledgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjfgesmh ekreertderudenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhephfefgeelke fgjeeuhefgfeevleeftedvhefftdeutefghfekhfduheffkeduteeknecukfhppeduledt rdelhedrudelrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id D5A22240066; Thu, 8 Apr 2021 16:11:52 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DD4E92A0874; Thu, 8 Apr 2021 16:11:49 -0400 (-04) Date: Thu, 8 Apr 2021 16:11:49 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: autovacuum: handle analyze for partitioned tables Message-ID: <20210408201149.GA32386@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1910760.1617907621@sss.pgh.pa.us> 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 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2021-Apr-08, Tom Lane wrote: > > So I tend to think that my initial instinct was the better direction: we > > should not be doing any find_all_inheritors() here at all, but instead > > rely on pg_class.reltuples to be set for the partitioned table. > > +1 This patch does that. -- Álvaro Herrera 39°49'30"S 73°17'W "I dream about dreams about dreams", sang the nightingale under the pale moon (Sandman) --bp/iNruPH9dso1Pn Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Set-pg_class.reltuples-for-partitioned-tables.patch"