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 1mRi0C-0000vs-JD for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Sep 2021 21:36: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 1mRi0B-00055F-IE for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Sep 2021 21:36: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 1mRi0B-000556-9q for pgsql-hackers@lists.postgresql.org; Sat, 18 Sep 2021 21:36:03 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mRi03-00060T-RB for pgsql-hackers@postgresql.org; Sat, 18 Sep 2021 21:36:02 +0000 Received: by mail-io1-xd2c.google.com with SMTP id f6so16938926iox.0 for ; Sat, 18 Sep 2021 14:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tORVW5Jirn26P91FZ4qRL81xiIJ6JFHd4uVUgpYC6QY=; b=zLsQ95MyMPngieCreJCgzgw3fkDk8NCq9nLrIIqCCQ1MtgzuTMmM6UFyBB9cixpXjB jZkI1ebLicgP2XzCKOcVJFZJIDWwdVoWvrO+chYHJtt/s6GaIf4N0T+KWQ7a4F4Pf1dt z86hSMdGIJP859zMDe16BIv2IKZRlaU0NlxRI2uOt+rfQLUIxcTLnK2ZAiKt+o3kU6gZ Gkhj+N1JQf7z0PORnPFE/eNA4zCS3OsBj3z2PLqqEKuVdix62r2zIueeEZRqVYgr4syw 7InTBFmUimdMn96kWdP4ex4ndU8atG4ZR6W6+OO7qJwxg+Mly+HY3c/VsIGeKOOSi81Y pVNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tORVW5Jirn26P91FZ4qRL81xiIJ6JFHd4uVUgpYC6QY=; b=LURugHfcB4QabYhkOH0Ocdml1O7k8gaIWjzV+detA4O/G+9R1OrVbJ2j8t23WknKoj Zu4q0niXVeL+NjLWnMJ9nXdkCMaBw1DmIhczqOc4JNwu01avgOXtD1xvKo63AEG7CY05 8gyDUQmE08mO+CbUCvqhvyXfybaORqBhd4Y2zKrUdenW0A/u7ZtXQuK0qyVQy8AycsYc /impBw10n9E7r0doVZ0KEiwBGlFKJgmkusxw9/ZqpuiQwCQ97W97WkTPSRpQvrhezU2o QvLPrykZXs2yej70uyGr8LNgn5FOoQLC/cawrg3UCoE1V9bf04qyhHdszIcNtU8sspVO xcBA== X-Gm-Message-State: AOAM533bnKdgSR+NSgw0MqMwJZmMEuD3yb3bjQT88+8CDTWynPeCIrwD OOO3icMejIJwMSHpmHvKawVrZJazexZO+g== X-Google-Smtp-Source: ABdhPJw0md1y75GHMdBKnKVKZcIfJYX1JP+O6ILVAJp3oTdcpXQ0/BjRy3T+M0sS0lkVXhfj0c2/eA== X-Received: by 2002:a05:6602:1543:: with SMTP id h3mr13303597iow.123.1632000953315; Sat, 18 Sep 2021 14:35:53 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id x12sm271163ilh.15.2021.09.18.14.35.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Sep 2021 14:35:52 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id CE688801832; Sat, 18 Sep 2021 16:35:51 -0500 (CDT) Date: Sat, 18 Sep 2021 16:35:51 -0500 From: Justin Pryzby To: Tom Lane Cc: Bruce Momjian , pgsql-hackers@postgresql.org Subject: Re: PG 14 release notes, first draft Message-ID: <20210918213551.GV831@telsasoft.com> References: <20210918204605.GU831@telsasoft.com> <1500489.1631999739@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1500489.1631999739@sss.pgh.pa.us> 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 Sat, Sep 18, 2021 at 05:15:39PM -0400, Tom Lane wrote: > Justin Pryzby writes: > > I think the release notes for the autovacuum item (which was first reverted and > > then partially un-reverted) should say something like "Partitioned tables are > > now included in pg_stat_all_tables": > > | e1efc5b465 Keep stats up to date for partitioned tables > > Hmm. If I'm reading the commit message properly, the actual change there > is not that, but that analyze count and last analyze time are now tracked > correctly for partitioned tables. Might be worth mentioning, not sure. The reverted patch to autoanalyze included partitioned tables in pg_stat_all_tables, and the revert specifically avoided changing that (to avoid a catbump). But last_analyzed and analyze_count were always shown as "0". So the e1 commit addresses that by tracking that information and showing correct value instead of always 0. The relevant portion starts here: https://www.postgresql.org/message-id/flat/202108161700.d4eh6a7n2lki%40alvherre.pgsql#b2e426eb19dbbddee0adf9bb1bcbbcf1 I suggest that this *should* be included in the release notes, since I specifically requested that partitioned tables be included in 2018. > In 20200418050815(dot)GE26953(at)telsasoft(dot)com I wrote: > |This patch includes partitioned tables in pg_stat_*_tables, which is great; I > |complained awhile ago that they were missing [0]. It might be useful if that > |part was split out into a separate 0001 patch (?). > | [0] https://www.postgresql.org/message-id/20180601221428.GU5164%40telsasoft.com Also, I've patched my analyze script to use that field (same as for nonpartitioned tables) rather than needing to do a subquery involving max(last_analyzed) of the partitions. Since it's still needed to manually analyze parent tables. -- Justin