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 1lZLvw-000669-Vo for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 23:07:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZLvu-0002eH-Jw for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 23:06:58 +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 1lZLvu-0002eA-DD for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 23:06:58 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZLvs-0003NK-Ey for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 23:06:58 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id BC575175E; Wed, 21 Apr 2021 19:06:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 21 Apr 2021 19:06:54 -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=nZXzs3Ej3FW2sffGJFQsObavJ5deOE8wDhoYml/dkGA=; b=uf3MUEps iy0cCqL703z0tw9uWYCXI9a1HvQU0lR3bCA9usN++KgQ3n3p+DK2R52y9QagABEz RB+80FxQd8dauRn+3MA35MkoLUtaPQtGcj/8+heJlytUMxTLv5hUWk6BtP/Idfef 1ZsNc8Qmq5M4yjCWoal/8/uTg4TnZK7Km81T70diSjRSWcgGpp1hHaUXbjWQpwJK FnJ7sfCqjy51wRIv+9HeBdjCJVFTNovRkiSW9BVe3iKpgCP50/M5gxujkOsHTlHN UhrP+43G1bMCLAJHzVBtAB93Ouvyc6m1lJLYdtDmjCBELnYUCZVUeFlbN2ShVPUS DlTT7i9KuJrziQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtledgudejucetufdoteggodetrfdotf 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 BBF4A108005B; Wed, 21 Apr 2021 19:06:52 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EB0F72A0BD7; Wed, 21 Apr 2021 19:06:49 -0400 (-04) Date: Wed, 21 Apr 2021 19:06:49 -0400 From: Alvaro Herrera To: Robert Haas Cc: Tom Lane , Zhihong Yu , PostgreSQL Developers Subject: Re: pgsql: autovacuum: handle analyze for partitioned tables Message-ID: <20210421230649.GA19244@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-09, Robert Haas wrote: > Does this need to worry about new partitions getting attached to a > partitioned table, or old ones getting detached? (Maybe it does > already, not sure.) I was pinged because this is listed as an open item. I don't think it is one. Handling ATTACH/DETACH/DROP is important for overall consistency, of course, so we should do it eventually, but the fact that autovacuum runs analyze *at all* for partitioned tables is an enormous step forward from it not doing so. I think we should treat ATTACH/ DETACH/DROP handling as a further feature to be added in a future release, not an open item to be fixed in the current one. Now, if somebody sees a very trivial way to handle it, let's discuss it, but *I* don't see it. -- Álvaro Herrera Valdivia, Chile "You're _really_ hosed if the person doing the hiring doesn't understand relational systems: you end up with a whole raft of programmers, none of whom has had a Date with the clue stick." (Andrew Sullivan)