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 1lUcEt-0005so-A5 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 21:30:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUcEs-0000Zq-7x for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 21:30: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 1lUcEr-0000Zj-TH for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 21:30:58 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lUcEp-0001PC-GT for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 21:30:57 +0000 Received: by mail-il1-x134.google.com with SMTP id z9so3045240ilb.4 for ; Thu, 08 Apr 2021 14:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8D/xCSch8eR8RR8N9GuthUI0OOnldxzszc+L96Ki4xc=; b=z+6FtRTp60FDaZmorxIuGAb9yvG5HNevhT8fy2UFw60IGIWbehRu45mBQQvf1Olr/0 cTg8f9oDAQ4QPtxj0cwlYg13L+3+2lrxARBywSQ6z8PK2Qb7gBPHyBnumwvU6ejDH+KW uXJVRI8rOA2KKCI8fSre1wmk7f6KVpc9721HqQ4BQh9mJ4cGOq4XoxGCw2FX8x07vRac qR/Ur8sySCvb84mw3bi191/yD/D98CcHmgTE/x7SyNR5Orvay9e7wltxNKjhgBqE3Pwp CYSmVvO8p4V9zIDVaheyAr0Ak57dpDnxU/I3l3YV/elrAzcK/0DvqOt6N5bbmY1FN/Bs hp+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8D/xCSch8eR8RR8N9GuthUI0OOnldxzszc+L96Ki4xc=; b=dB2VgsyrTN/ixIcwCt4kBQE2jfGyIw/SVkbvffMO+uHuYhI9KRDbIHlp/q0NZ2CJ0p QmNjywdZytShp39fNtDU/r/8KwyImE8uD1anA6/rIkSdRC5UciRzwUz2TTCDGXLqpDLu 7fN97Nvu/pt9JyYFJw7UHRwC2yodB3wwuoxjJaMlSOKX5GqTLvwLSjf9C0xNkDiUBOUK mKpENwljC2SNwRks8pjSEAZP8gl04+rA/McsFt+U9mwQHvlsKhhtEdelGf1oeS5t87CB AWPzaMqj6VtSRc5Axwk9FZ9ODppcNNHwTAOCu23UMpDjPyxb365cL5QNqdnWE6srHyaF IRYA== X-Gm-Message-State: AOAM530HNTHCBPARJkwqvTB5Yw0cPJoA8C+jdo727xlf5fNQplR3G353 MUPKofRjqYWgIpPAH+ZCJYswsg== X-Google-Smtp-Source: ABdhPJzwa6CEA/e6o5ppGILdao5Ux+uMVrc+TAw5MA2yU9tTk8/Sa1ay4FzJW2rfu4Xbq+zwUVKV1g== X-Received: by 2002:a05:6e02:15c6:: with SMTP id q6mr8570991ilu.17.1617917453533; Thu, 08 Apr 2021 14:30:53 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f9sm207643iol.23.2021.04.08.14.30.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Apr 2021 14:30:52 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id A146F80084D; Thu, 8 Apr 2021 16:30:51 -0500 (CDT) Date: Thu, 8 Apr 2021 16:30:51 -0500 From: Justin Pryzby To: Alvaro Herrera 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: <20210408213051.GL6592@telsasoft.com> References: <20210408032235.GA6842@alvherre.pgsql> <20210408052014.GA28806@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210408052014.GA28806@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 08, 2021 at 01:20:14AM -0400, Alvaro Herrera wrote: > 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. 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. -- Justin