Re: why partition pruning doesn't work? - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Re: why partition pruning doesn't work?
Date
Msg-id CAFjFpRc4EOsx=Ph8EGG2NSKKboArMMe=FGLy-uSCU5EemJHurg@mail.gmail.com
Whole thread Raw
In response to Re: why partition pruning doesn't work?  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers
On Thu, Jun 7, 2018 at 8:51 AM, David Rowley
<david.rowley@2ndquadrant.com> wrote:
> On 7 June 2018 at 14:51, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote:
>> Thanks David.  This one looks good.  I also like it that hasparamlessexprs
>> is no longer determined and set in the planner.
>
> Thanks for checking it.
>
>> I checked what happens with the cases that Ashutosh complained about
>> upthread and seems that the pruning works as expected.
>
> [...]
>
>> explain (costs off, analyze) select * from t1 x left join t1 y on x.a =
>> y.b + 100 where y.a = 5;
>
> Yeah, I added a test to partition_prune.sql that verifies a similar case.

Thanks for taking care of that.

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


pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Remove mention in docs that foreign keys on partitioned tablesare not supported
Next
From: Michael Paquier
Date:
Subject: Re: I'd like to discuss scaleout at PGCon