pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add extensive tests for partition pruning.
Date: Wed, 29 Nov 2017 20:28:48 +0000
Message-ID: <E1eK8yO-0002Gd-Qe@gemulon.postgresql.org> (raw)

Add extensive tests for partition pruning.

Currently, partition pruning happens via constraint exclusion, but
there are pending places to replace that with a different and
hopefully faster mechanism.  To be sure that we don't change behavior
without realizing it, add extensive test coverage.

Note that not all of these behaviors are optimal; in some cases,
partitions are not pruned even though it would be safe to do so.
These tests therefore serve to memorialize the current state rather
than the ideal state.  Patches that improve things can update the test
results as appropriate.

Amit Langote, adjusted by me.  Review and testing of the larger patch
set of which this is a part by Ashutosh Bapat, David Rowley, Dilip
Kumar, Jesper Pedersen, Rajkumar Raghuwanshi, Beena Emerson, Amul Sul,
and Kyotaro Horiguchi.

Discussion: http://postgr.es/m/098b9c71-1915-1a2a-8d52-1a7a50ce79e8@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d4e70a63bf8772bbf5db620ef1e14761fbd2044

Modified Files
--------------
src/test/regress/expected/partition_prune.out | 1095 +++++++++++++++++++++++++
src/test/regress/parallel_schedule            |    2 +-
src/test/regress/serial_schedule              |    1 +
src/test/regress/sql/partition_prune.sql      |  155 ++++
4 files changed, 1252 insertions(+), 1 deletion(-)



Message-ID: <E1eK8yO-0002Gd-Qe@gemulon.postgresql.org>
Permalink:  ../E1eK8yO-0002Gd-Qe@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eK8yO-0002Gd-Qe@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: rhaas@postgresql.org
  Subject: Re: pgsql: Add extensive tests for partition pruning.
  In-Reply-To: <E1eK8yO-0002Gd-Qe@gemulon.postgresql.org>
  References: <E1eK8yO-0002Gd-Qe@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