Re: [idea] table partition + hash join - Mailing list pgsql-hackers

From Amit Langote
Subject Re: [idea] table partition + hash join
Date
Msg-id CA+HiwqHGSuW-uk6E615KaxcDc8VA2L2X269dbEvx2XB-8SYReg@mail.gmail.com
Whole thread Raw
In response to Re: [idea] table partition + hash join  (Rosiński Krzysztof 2 - Detal<Krzysztof.Rosinski2@orange.com>)
List pgsql-hackers
On Wed, Jun 10, 2015 at 8:48 PM, Rosiński Krzysztof 2 - Detal
<Krzysztof.Rosinski2@orange.com> wrote:
> How to use this optimization ?
>
>
>
> select *
>
> from table join partitioned_table on (
>
>   table.part_id = partitioned_table.id
>
>   and hash_func_mod(table.part_id) = hash_func_mod(partitioned_table.id)
>
> )
>

If I read the proposed idea correctly, you wouldn't need to add that
second condition.

Thanks,
Amit



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: error message diff with Perl 5.22.0
Next
From: Michael Paquier
Date:
Subject: Re: minor issues in pg_rewind