Re: pgsql: autovacuum: handle analyze for partitioned tables - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgsql: autovacuum: handle analyze for partitioned tables
Date
Msg-id 20210408212951.GA15182@alvherre.pgsql
Whole thread Raw
In response to Re: pgsql: autovacuum: handle analyze for partitioned tables  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: pgsql: autovacuum: handle analyze for partitioned tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2021-Apr-08, Zhihong Yu wrote:

> Hi,
> Within truncate_update_partedrel_stats(), dirty is declared within the loop.
> +       if (rd_rel->reltuples != 0)
> +       {
> ...
> +       if (dirty)
> 
> The two if blocks can be merged. The variable dirty can be dropped.

Hi, thanks for reviewing.  Yes, evidently I copied vac_update_relstats
too closely -- that boolean is not necessary.

-- 
Álvaro Herrera       Valdivia, Chile



pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: pg_amcheck contrib application
Next
From: Tomas Vondra
Date:
Subject: Re: Binary search in ScalarArrayOpExpr for OR'd constant arrays