Re: docfix - DELETE doesn't affect auto-analyze - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: docfix - DELETE doesn't affect auto-analyze
Date
Msg-id 20070718041752.GA4586@alvh.no-ip.org
Whole thread Raw
In response to Re: docfix - DELETE doesn't affect auto-analyze  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> >> -    is compared to the total number of tuples inserted, updated, or deleted
> >> +    is compared to the total number of tuples inserted or updated
>
> As best I can tell, this description is even further away from the
> actual CVS HEAD behavior than the previous one.  The code is comparing
> against
>
>         anltuples = tabentry->n_live_tuples + tabentry->n_dead_tuples -
>             tabentry->last_anl_tuples;
>
> and deletions surely increase n_dead_tuples.

I think the patch is correct for 8.1 and 8.2 but is wrong for HEAD
(disclaimer: I'm a bit sleepy ATM).

--
Alvaro Herrera                        http://www.advogato.org/person/alvherre
Management by consensus: I have decided; you concede.
(Leonard Liu)

pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: docfix - DELETE doesn't affect auto-analyze
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: docfix - DELETE doesn't affect auto-analyze