From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use custom hash opclass for hash partition pruning
Date: Fri, 13 Apr 2018 15:27:46 +0000
Message-ID: <E1f70c6-0003Dc-4g@gemulon.postgresql.org> (raw)
Use custom hash opclass for hash partition pruning
This custom opclass was already in use in other tests -- defined
independently in every such file. Move the definition to the earliest
test that uses it, and keep it around so that later tests can reuse it.
Use it in the tests for pruning of hash partitioning, and since this
makes the second expected file unnecessary, put those tests back in
partition_prune.sql whence they sprang.
Author: Amit Langote
Discussion: https://postgr.es/m/CA%2BTgmoZ0D5kJbt8eKXtvVdvTcGGWn6ehWCRSZbWytD-uzH92mQ%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fafec4cce814b9b15991b62520dc5e5e84655a8a
Modified Files
--------------
src/test/regress/expected/alter_table.out | 15 +-
src/test/regress/expected/hash_part.out | 23 +--
src/test/regress/expected/insert.out | 32 +++-
src/test/regress/expected/partition_prune.out | 191 +++++++++++++++++++++
src/test/regress/expected/partition_prune_hash.out | 189 --------------------
.../regress/expected/partition_prune_hash_1.out | 187 --------------------
src/test/regress/parallel_schedule | 2 +-
src/test/regress/serial_schedule | 1 -
src/test/regress/sql/alter_table.sql | 15 +-
src/test/regress/sql/hash_part.sql | 24 +--
src/test/regress/sql/insert.sql | 36 +++-
src/test/regress/sql/partition_prune.sql | 44 ++++-
src/test/regress/sql/partition_prune_hash.sql | 41 -----
13 files changed, 305 insertions(+), 495 deletions(-)
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: Use custom hash opclass for hash partition pruning
In-Reply-To: <E1f70c6-0003Dc-4g@gemulon.postgresql.org>
References: <E1f70c6-0003Dc-4g@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