Re: Intermittent test plan change in "privileges" test on BF animal prion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Intermittent test plan change in "privileges" test on BF animal prion
Date: 2020-06-09 03:55:01
Message-ID: 2155068.1591674901@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Rowley <dgrowleyml(at)gmail(dot)com> writes:
> On Tue, 9 Jun 2020 at 15:41, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Hmm ... that's a plausible theory, perhaps. I forget: does autovac
>> recheck, after acquiring the requisite table lock, whether the table
>> still needs to be processed?

> It does, but I wondered if there was a window after the manual vacuum
> resets n_ins_since_vacuum and between when autovacuum looks at it.

Oh, there surely is, because of the lag in the stats collection mechanism.
I'm trying to reproduce this now, but it's sounding pretty plausible.

BTW, it looks like I managed to trim the reference off my prior message,
but I meant [1] to refer to
https://www.postgresql.org/message-id/666679.1591138428%40sss.pgh.pa.us

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Fan 2020-06-09 05:09:45 Re: A wrong index choose issue because of inaccurate statistics
Previous Message David Rowley 2020-06-09 03:48:23 Re: Intermittent test plan change in "privileges" test on BF animal prion