pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowley@gmail.com>
Cc: David Rowley <drowley@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org, Tomas Vondra <tomas.vondra@2ndquadrant.com>
Subject: Re: pgsql: Attempt to fix unstable regression tests, take 2
Date: Tue, 31 Mar 2020 19:59:57 -0400
Message-ID: <7770.1585699197@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHoyFK9pHKPHyEp35QXo9NzkFOeupyRNONuEFgej4U54=Cmj2w@mail.gmail.com>
References: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org>
	<10234.1585613690@sss.pgh.pa.us>
	<11757.1585619115@sss.pgh.pa.us>
	<15012.1585623298@sss.pgh.pa.us>
	<CAHoyFK9pHKPHyEp35QXo9NzkFOeupyRNONuEFgej4U54=Cmj2w@mail.gmail.com>

David Rowley <dgrowley@gmail.com> writes:
> On Tue, 31 Mar 2020 at 15:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Now this *IS* autovacuum interference, but it's hardly autovacuum's fault:
>> the test script is supposing that autovac won't come in before it does a
>> manual analyze, and that's just unsafe on its face.

> Why would that matter?

Look again at the failure: the problem is that the test script is
populating a table, then doing an EXPLAIN and expecting to see
results corresponding to a *not*-ANALYZED table, then doing ANALYZE,
then expecting to see EXPLAIN results corresponding to the analyzed
state.  It's the second step of that that is vulnerable to an
ill-timed auto analyze.  The only way to prevent it is to disable
autovac altogether on the table, as I did a little while ago
at 0936d1b6f.

This is of course not like the cases we've actually seen so far
in the buildfarm, but it's a case that I produced once and it
would surely recur.

It will be interesting to see if 0936d1b6f really fixes the issue
altogether or the instability continues --- but if it does, then
autovacuum is not the problem.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <7770.1585699197@sss.pgh.pa.us>
Permalink:  ../7770.1585699197@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7770.1585699197@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dgrowley@gmail.com, drowley@postgresql.org, tomas.vondra@2ndquadrant.com
  Subject: Re: pgsql: Attempt to fix unstable regression tests, take 2
  In-Reply-To: <7770.1585699197@sss.pgh.pa.us>
  References: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org> <10234.1585613690@sss.pgh.pa.us> <11757.1585619115@sss.pgh.pa.us> <15012.1585623298@sss.pgh.pa.us> <CAHoyFK9pHKPHyEp35QXo9NzkFOeupyRNONuEFgej4U54=Cmj2w@mail.gmail.com> <7770.1585699197@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox