Re: Planning time of Generic plan for a table partitioned into a lot - Mailing list pgsql-hackers

From David Rowley
Subject Re: Planning time of Generic plan for a table partitioned into a lot
Date
Msg-id CAKJS1f_Y1cZX68tKdO28NiMbO8dzr=Q8dskRa+oR6E1dRHfnDg@mail.gmail.com
Whole thread Raw
In response to Re: Planning time of Generic plan for a table partitioned into a lot  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
On Fri, 30 Nov 2018 at 19:44, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> Yeah, maybe we haven't explained in the documentation where generic plans
> are described that making them for partitioned table is an expensive
> affair.  Although, by definition, they are built once for a given query
> and PG 11 with it's execution-time pruning can execute these plans pretty
> quickly, which is an overall improvement.  But you'd obviously know that
> much. :)

Maybe a documents patch is a good idea. Your planner patches for
partitioning are only going to widen the performance gap between
generating a plan where many partitions are pruned vs generating a
generic plan where no partition could be pruned.  I can only imagine
this will cause problems for more people as that gap widens as it will
likely lead to more and more people with partitioned tables with high
numbers of partitions.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: [HACKERS] Weaker shmem interlock w/o postmaster.pid
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: idle-in-transaction timeout error does not give a hint