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 <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: Mon, 30 Mar 2020 20:14:50 -0400
Message-ID: <10234.1585613690@sss.pgh.pa.us> (raw)
In-Reply-To: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org>
References: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org>

David Rowley <drowley@postgresql.org> writes:
> Attempt to fix unstable regression tests, take 2

That still isn't working, and I'm starting to think that we're
blaming the messenger.  To wit, what we are seeing here is that
these tests are unstable ... and that's a bug of the tests, not of
any adjustments of autovacuum timing.  I notice that at least
most of the deltas are in test cases that are only a couple weeks
old, so they don't have a lot of track record saying that they
are stable.

Specifically, I notice that in the last couple of failures involving
tests on "mcv_lists", we are considering stats on a 5000-row table.
With the standard setting default_statistics_target = 100, ANALYZE
will take a 3000-row random sample, meaning that its results are
*inherently* not 100% reproducible.  In the past we have avoided
that being a problem for the regression tests by dint of not
depending on exact estimation results, but this test is designed
to do precisely that.

I think what needs to happen here is to revert these changes
you've made, and instead either reduce the size of the test table
or increase default_statistics_target within this test, so that
ANALYZE's sample includes the whole table and is thereby completely
stable.  (I'd tend to favor the former approach if possible, just
to keep a lid on test runtime.)

Or we could decide that these tests are a bad idea and toss them
completely; but I bet Tomas will object.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <10234.1585613690@sss.pgh.pa.us>
Permalink:  ../10234.1585613690@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10234.1585613690@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, drowley@postgresql.org, tomas.vondra@2ndquadrant.com
  Subject: Re: pgsql: Attempt to fix unstable regression tests, take 2
  In-Reply-To: <10234.1585613690@sss.pgh.pa.us>
  References: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org> <10234.1585613690@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