From: Michael Paquier <michael.paquier@gmail.com>
To: Michelle Konzack <linux4michelle@tamay-dogan.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: [table partitioning] How many partitions are possibel?
Date: Wed, 27 Dec 2017 09:48:18 +0900
Message-ID: <20171227004818.GC1727@paquier.xyz> (raw)
In-Reply-To: <985d2955b835dfc9033108c7a271d94e.squirrel@webmail.tamay-dogan.net>
References: <985d2955b835dfc9033108c7a271d94e.squirrel@webmail.tamay-dogan.net>
On Tue, Dec 26, 2017 at 11:04:55AM +0100, Michelle Konzack wrote:
> I like to make the partitions smaller, but the documentation say, you
> should not dare to make several 1000 partitions..
Even more than a hundred may be already risky in my opinion here. The
issue with a large number of partitioning using the pre-9.6 grammar
comes from the planning time which sky-rockets because the optimizer
uses a O(N^2) algorithm to consider all the partitions. The v10 grammar
does not take care of this planning problem as far as I recall, but v11
gets that better for partition-wise joins if my memory does not fail me.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael.paquier@gmail.com, linux4michelle@tamay-dogan.net
Subject: Re: [table partitioning] How many partitions are possibel?
In-Reply-To: <20171227004818.GC1727@paquier.xyz>
References: <985d2955b835dfc9033108c7a271d94e.squirrel@webmail.tamay-dogan.net> <20171227004818.GC1727@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox