pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve stability of partition_prune regression test.
Date: Sat, 28 Sep 2019 17:33:46 +0000
Message-ID: <E1iEGbK-0000jj-MF@gemulon.postgresql.org> (raw)

Improve stability of partition_prune regression test.

This test already knew that, to get stable test output, it had to hide
"loops" counts in EXPLAIN ANALYZE results.  But that's not nearly enough:
if we get a smaller number of workers than we planned for, then the
"Workers Launched" number will change, and so will all the rows and loops
counts up to the Gather node.  This has resulted in repeated failures in
the buildfarm, so adjust the test to filter out all these counts.

(Really, we wouldn't bother with EXPLAIN ANALYZE at all here, except
that currently the only way to verify that executor-time pruning has
happened is to look for '(never executed)' annotations.  Those are
stable and needn't be filtered out.)

Back-patch to v11 where the test was introduced.

Discussion: https://postgr.es/m/11952.1569536725@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0baa55655e0549cf19fcfdb007c3250f7d4761a9

Modified Files
--------------
src/test/regress/expected/partition_prune.out | 196 +++++++++++++-------------
src/test/regress/sql/partition_prune.sql      |  16 ++-
2 files changed, 110 insertions(+), 102 deletions(-)



view thread (3+ messages)

Message-ID: <E1iEGbK-0000jj-MF@gemulon.postgresql.org>
Permalink:  ../E1iEGbK-0000jj-MF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iEGbK-0000jj-MF@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Improve stability of partition_prune regression test.
  In-Reply-To: <E1iEGbK-0000jj-MF@gemulon.postgresql.org>
  References: <E1iEGbK-0000jj-MF@gemulon.postgresql.org>

* 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