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 22:54:58 -0400
Message-ID: <15012.1585623298@sss.pgh.pa.us> (raw)
In-Reply-To: <11757.1585619115@sss.pgh.pa.us>
References: <E1jIrrJ-0000GJ-PS@gemulon.postgresql.org>
<10234.1585613690@sss.pgh.pa.us>
<11757.1585619115@sss.pgh.pa.us>
I wrote:
> Anyway, I remain suspicious that the instability is the fault
> of something in the statistics code, not of autovacuum.
I've been trying to reproduce this by dint of running just the stats_ext
script, over and over in a loop. I've not had any success on fast
machines, but on a slow one (florican's host) I got this after a few
hundred iterations:
inline patch 1: /usr/home/tgl/pgsql/src/test/regress/results/stats_ext.out (+1/-1 lines) download inline-1.patchdiff -U3 /usr/home/tgl/pgsql/src/test/regress/expected/stats_ext.out /usr/home/tgl/pgsql/src/test/regress/results/stats_ext.out
--- /usr/home/tgl/pgsql/src/test/regress/expected/stats_ext.out 2020-03-30 21:15:19.749874000 -0400+++ /usr/home/tgl/pgsql/src/test/regress/results/stats_ext.out 2020-03-30 22:29:04.062103000 -0400@@ -1172,7 +1172,7 @@
SELECT * FROM check_estimated_rows('SELECT * FROM mcv_lists WHERE a = 1 AND b = ''1''');
estimated | actual
-----------+--------
- 1 | 50+ 50 | 50
(1 row)
VACUUM (ANALYZE) mcv_lists;
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.
I'm thinking that what we ought to do is have this test disable autovac
altogether on its tables, ie
CREATE TABLE ... WITH (autovacuum_enabled = off);
However, I remain suspicious that there's something else going on,
unrelated to autovac. All the buildfarm cases so far have been
small underestimates, one or two rows, so they look entirely different
from the example above. Even if autovacuum is firing unexpectedly,
how would it cause such results?
regards, tom lane
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: <15012.1585623298@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>
* 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