pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve coverage of nodeAppend runtime partition prune
Date: Tue, 17 Apr 2018 15:29:33 +0000
Message-ID: <E1f8SY1-0000ZE-6T@gemulon.postgresql.org> (raw)

Improve coverage of nodeAppend runtime partition prune

coverage report indicated that mark_invalid_subplans_as_finished() and
nearby code was not getting exercised by any tests.  Add a new one which
has execution-time Params rather than only external Params to fix this.

In passing, David noticed that ab_q6 tests were not actually required to
have a generic plan. The tests were testing exec Params not external
Params, so there was no need for the PREPARE.  Remove the PREPARE,
making these plain queries.  (The new queries are called from
explain_parallel_append, which may be unnecessary since they don't
actually have a Parallel Append node, just an Append.  But it doesn't
seem to hurt anything, either.)

Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f--hopb6JBSDY4wiXTS3ZcDp-wparXjTQ1nzNdBa04Fog@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/95cdc77b35ece28137b8dec8c6f9b5474b215624

Modified Files
--------------
src/test/regress/expected/partition_prune.out | 92 ++++++++++++---------------
src/test/regress/sql/partition_prune.sql      | 37 +++++------
2 files changed, 55 insertions(+), 74 deletions(-)



Message-ID: <E1f8SY1-0000ZE-6T@gemulon.postgresql.org>
Permalink:  ../E1f8SY1-0000ZE-6T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f8SY1-0000ZE-6T@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Improve coverage of nodeAppend runtime partition prune
  In-Reply-To: <E1f8SY1-0000ZE-6T@gemulon.postgresql.org>
  References: <E1f8SY1-0000ZE-6T@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