pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve stability of partition_prune regression test.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Improve stability of partition_prune regression test.
@ 2019-09-28 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2019-09-28 17:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4ea03f3f4eba3c76abae2e69bf48c921799a68a3

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Improve stability of partition_prune regression test.
@ 2019-09-28 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2019-09-28 17:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9de7ea6aca5a394dbddac4b13b475b313e352b3f

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Improve stability of partition_prune regression test.
@ 2019-09-28 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2019-09-28 17:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-09-28 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-28 17:33 pgsql: Improve stability of partition_prune regression test. Tom Lane <tgl@sss.pgh.pa.us>
2019-09-28 17:33 pgsql: Improve stability of partition_prune regression test. Tom Lane <tgl@sss.pgh.pa.us>
2019-09-28 17:33 pgsql: Improve stability of partition_prune regression test. Tom Lane <tgl@sss.pgh.pa.us>

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