Re: Partition-wise join for join between (declaratively) partitioned tables

From: Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Rajkumar Raghuwanshi <rajkumar(dot)raghuwanshi(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Partition-wise join for join between (declaratively) partitioned tables
Date: 2017-02-10 12:53:20
Message-ID: CAFjFpRfVDUtx9ao_3nEtW0UJFom6W7EcjOTWvWheWHu5XJ1cZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here is set of patches with support for partition-wise join between
multi-level partitioned tables.

On Fri, Feb 10, 2017 at 11:19 AM, Ashutosh Bapat
<ashutosh(dot)bapat(at)enterprisedb(dot)com> wrote:
> Fixed a problem with the way qsort was being used in the earlier set
> of patches. Attached PFA the set of patches with that fixed.

This fix is included.

>
> On Thu, Feb 9, 2017 at 4:20 PM, Ashutosh Bapat
> <ashutosh(dot)bapat(at)enterprisedb(dot)com> wrote:
>> Per your suggestion I have split the patch into many smaller patches.
>>
>> 0001-Refactor-set_append_rel_pathlist.patch
>> 0002-Refactor-make_join_rel.patch
>> 0003-Refactor-adjust_appendrel_attrs.patch
>> 0004-Refactor-build_join_rel.patch
>> 0005-Add-function-find_param_path_info.patch
>>
>> These four refactor existing code.
>>
>> 0006-Canonical-partition-scheme.patch
>> 0007-Partition-wise-join-tests.patch -- just tests, they fail
>> 0008-Partition-wise-join.patch -- actual patch implementing
>> partition-wise join, still some tests fail\
>>
>> 0009-Adjust-join-related-to-code-to-accept-child-relation.patch
>> 0010-Parameterized-path-fixes.patch
>> 0011-Use-IS_JOIN_REL-instead-of-RELOPT_JOINREL.patch
>>

patch to translate partition hierarchy into inheritance hierarchy
without flattening

0012-Multi-level-partitioned-table-expansion.patch

patches for multi-level partition-wise join support

0013-Multi-level-partition-wise-join-tests.patch
0014-Multi-level-partition-wise-join-support.patch

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

Attachment Content-Type Size
0001-Refactor-set_append_rel_pathlist.patch application/octet-stream 4.0 KB
0002-Refactor-make_join_rel.patch application/octet-stream 2.4 KB
0003-Refactor-adjust_appendrel_attrs.patch application/octet-stream 12.8 KB
0004-Refactor-build_join_rel.patch application/octet-stream 6.7 KB
0005-Add-function-find_param_path_info.patch application/octet-stream 3.6 KB
0006-Canonical-partition-scheme.patch application/octet-stream 16.0 KB
0007-Partition-wise-join-tests.patch application/octet-stream 237.7 KB
0008-Partition-wise-join-implementation.patch application/octet-stream 84.9 KB
0009-Adjust-join-related-to-code-to-accept-child-relation.patch application/octet-stream 11.3 KB
0010-Parameterized-path-fixes.patch application/octet-stream 16.3 KB
0011-Use-IS_JOIN_REL-instead-of-RELOPT_JOINREL.patch application/octet-stream 5.8 KB
0012-Multi-level-partitioned-table-expansion.patch application/octet-stream 11.4 KB
0013-Multi-level-partition-wise-join-tests.patch application/octet-stream 43.4 KB
0014-Multi-level-partition-wise-join-support.patch application/octet-stream 15.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-02-10 13:12:19 Re: Parameterization of partial path
Previous Message Robert Haas 2017-02-10 12:52:57 Re: Parallel tuplesort (for parallel B-Tree index creation)