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 1lUcdg-0006lK-8w for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 21:56:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUcde-0004uZ-Hg for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 21:56:34 +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 1lUcde-0004t2-Al for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 21:56:34 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUcdc-0001ba-3F for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 21:56:33 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id B8908580573; Thu, 8 Apr 2021 17:56:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 08 Apr 2021 17:56:29 -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=8yEWjjufJsKE938DQuG6liVbK18pa02pP7qQUFh8cvU=; b=XfJJ6po1 UiRUjpobFTLWIBXl77u5x8/Kx0SGXpFwgRJ3XDJJSXboZqKCHqbDL0WkHcxAzDSt d+bJRnqvRizl1PnHX+4gYyx81tLAWSuu0QNOyuD3NcJcmLq4Lt4DYb5vk8p++9py AjNszUBH0kq7FnrFFGc64u3HKn9foxcQxV6FEQduAhV8J3s5duTldH+/yDzDApP9 pkoBzuhcqI6BDp41jZl1k+i7+dV/9EtPH/MN6sztwGfp7HEsrsjoyF/W6VDGM5BZ 4oK1JONnk4K6AFSV1DaWCYdidZXuqC8jZDnWzvUTH6GiiFpwEzcxNYX3hatlPqcg FAxEi2gD5SeihA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudektddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesmhekreertderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhephfefgeelkefgjeeuhefgfeevleeftedvhefftdeutefg hfekhfduheffkeduteeknecukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvg 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 80EE41080068; Thu, 8 Apr 2021 17:56:28 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DF43A2A0874; Thu, 8 Apr 2021 17:56:25 -0400 (-04) Date: Thu, 8 Apr 2021 17:56:25 -0400 From: Alvaro Herrera To: Justin Pryzby Cc: yuzuko , Tomas Vondra , David Steele , Kyotaro Horiguchi , Daniel Gustafsson , Amit Langote , Masahiko Sawada , Laurenz Albe , pgsql-hackers@lists.postgresql.org, Greg Stark Subject: Re: Autovacuum on partitioned table (autoanalyze) Message-ID: <20210408215625.GA17048@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210408213051.GL6592@telsasoft.com> 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 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2021-Apr-08, Justin Pryzby wrote: > commit 0827e8af70f4653ba17ed773f123a60eadd9f9c9 > | This also introduces necessary reloptions support for partitioned tables > | (autovacuum_enabled, autovacuum_analyze_scale_factor, > | autovacuum_analyze_threshold). It's unclear how best to document this > | aspect. > > At least this part needs to be updated - see also ed62d3737. > > doc/src/sgml/ref/create_table.sgml- The storage parameters currently > doc/src/sgml/ref/create_table.sgml- available for tables are listed below. > ... > doc/src/sgml/ref/create_table.sgml: Specifying these parameters for partitioned tables is not supported, > doc/src/sgml/ref/create_table.sgml- but you may specify them for individual leaf partitions. Ah, thanks for pointing it out. How about the attached? This new bit reads weird: + Most parameters are not supported on partitioned tables, with exceptions + noted below; you may specify them for individual leaf partitions. Maybe "Most parameters are not supported on partitioned tables, with exceptions noted below; you may specify others for individual leaf partitions." -- Álvaro Herrera 39°49'30"S 73°17'W --W/nzBZO5zC0uMSeA Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-document-reloptions-for-partitioned-tables.patch" From 37a829ec7b9c46acbbdb02f231288e39d22fcd04 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 8 Apr 2021 17:53:22 -0400 Subject: [PATCH] document reloptions for partitioned tables --- doc/src/sgml/ref/create_table.sgml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 44e50620fd..3cf355cc8d 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1369,8 +1369,8 @@ WITH ( MODULUS numeric_literal, REM If a table parameter value is set and the equivalent toast. parameter is not, the TOAST table will use the table's parameter value. - Specifying these parameters for partitioned tables is not supported, - but you may specify them for individual leaf partitions. + Most parameters are not supported on partitioned tables, with exceptions + noted below; you may specify them for individual leaf partitions. @@ -1452,6 +1452,7 @@ WITH ( MODULUS numeric_literal, REM If true, the autovacuum daemon will perform automatic VACUUM and/or ANALYZE operations on this table following the rules discussed in . + This parameter is supported on partitioned tables. If false, this table will not be autovacuumed, except to prevent transaction ID wraparound. See for more about wraparound prevention. @@ -1576,6 +1577,7 @@ WITH ( MODULUS numeric_literal, REM Per-table value for parameter. + This parameter is supported on partitioned tables. @@ -1591,6 +1593,7 @@ WITH ( MODULUS numeric_literal, REM Per-table value for parameter. + This parameter is supported on partitioned tables. -- 2.20.1 --W/nzBZO5zC0uMSeA--