Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0

From: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
To: alvherre(at)2ndquadrant(dot)com
Cc: Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp, pryzby(at)telsasoft(dot)com, sanyo(dot)moura(at)tatic(dot)net, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, david(dot)rowley(at)2ndquadrant(dot)com, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-performance(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0
Date: 2018-12-07 11:14:14
Message-ID: CAExHW5uFwP_1N7RV6s8piQBvygGH+rppS60nFNHB9DKEM04ShA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Fri, Dec 7, 2018 at 11:13 AM Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
wrote:

>
>
>
>>
>>
>> Robert, Ashutosh, any comments on this? I'm unfamiliar with the
>> partitionwise join code.
>>
>
> As the comment says it has to do with the equivalence classes being used
> during merge append. EC's are used to create pathkeys used for sorting.
> Creating a sort node which has column on the nullable side of an OUTER join
> will fail if it doesn't find corresponding equivalence class. You may not
> notice this if both the partitions being joined are pruned for some reason.
> Amit's idea to make partition-wise join code do this may work, but will add
> a similar overhead esp. in N-way partition-wise join once those equivalence
> classes are added.
>
>
>
I looked at the patch. The problem there is that for a given relation, we
will add child ec member multiple times, as many times as the number of
joins it participates in. We need to avoid that to keep ec_member list
length in check.

--
Best Wishes,
Ashutosh Bapat

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Francesco Nidito 2018-12-07 11:24:26 Re: Log level of logical decoding
Previous Message Matsumura, Ryo 2018-12-07 10:54:49 RE: [PROPOSAL]a new data type 'bytea' for ECPG

Browse pgsql-performance by date

  From Date Subject
Next Message Square Bob 2018-12-08 19:00:33 amazon aroura config - seriously overcommited defaults? (May be Off Topic)
Previous Message Ashutosh Bapat 2018-12-07 05:43:45 Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0