Re: Planner performance in partitions - Mailing list pgsql-performance

From David Rowley
Subject Re: Planner performance in partitions
Date
Msg-id CAKJS1f9DEHYHu=hJPE_SYj9eheWK4F8iPNQGBApT4AHKgxVywQ@mail.gmail.com
Whole thread Raw
In response to ODP: Planner performance in partitions  (Piotr Włodarczyk <piotrwlodarczyk89@gmail.com>)
Responses Re: Planner performance in partitions  (Michael Lewis <mlewis@entrata.com>)
List pgsql-performance
On Tue, 13 Aug 2019 at 08:03, Piotr Włodarczyk
<piotrwlodarczyk89@gmail.com> wrote:
> PostgreSQL11.5:
>
> select on main partition (public.book): planner: 60ms, execution: 5ms
> select on partitioned table (public.book_1-1000): planner: 2.7 ms, execution: 2,4 ms
>
> PostgreSQL 12B3:
>
> select on main partition (public.book): planner: 2,5ms , execution: 1,2ms
> select on partitioned table (public.book_1-1000): planner: 2.5 ms, execution: 1,2 ms
>
> So looking at above results we have two options:
>
> Wait for 12.0 stable version
> Wait for patches to 11 – PostgreSQL Team: can You do this?

You'll need to either reduce the number of partitions down to
something realistic or wait for 12.0.

The work done to speed up the planner with partitioned tables for v12
won't be going into v11.

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



pgsql-performance by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Last event per user
Next
From: Luís Roberto Weck
Date:
Subject: Re: Last event per user