pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael.paquier@gmail.com>
To: Rakesh Kumar <rakeshkumar464@mail.com>
Cc: Kumar, Virendra <Virendra.Kumar@guycarp.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: How Many Partitions are Good Performing
Date: Tue, 9 Jan 2018 09:51:27 +0900
Message-ID: <20180109005021.GD76418@paquier.xyz> (raw)
In-Reply-To: <trinity-db855e95-2631-4912-899f-df3ef2320c66-1515455658940@3c-app-mailcom-lxa06>
References: <b6d4d767cdbb4c8aadf51a502277f125@USFKL11XG20CN01.mercer.com>
	<trinity-db855e95-2631-4912-899f-df3ef2320c66-1515455658940@3c-app-mailcom-lxa06>

On Tue, Jan 09, 2018 at 12:54:18AM +0100, Rakesh Kumar wrote:
> Can somebody tell us how many partitions are good number without
> impacting the performance. We are hearing around a thousand, is that a
> limit. Do we have plan to increase the number of partitions for a
> table. We would appreciate if somebody can help us with this?

What matters here is that the bottleneck comes from the planner which
uses basically a O(N^2) algorithm to evaluate all the partitions, so a
too high number causes planning time to increase dramatically. In
Postgres 11, things get improved with more partition-wise logics.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (9+ messages)  latest in thread

Message-ID: <20180109005021.GD76418@paquier.xyz>
Permalink:  ../20180109005021.GD76418@paquier.xyz/
Also on:    postgresql.org/message-id/20180109005021.GD76418@paquier.xyz

 · 

reply

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, rakeshkumar464@mail.com, Virendra.Kumar@guycarp.com
  Subject: Re: How Many Partitions are Good Performing
  In-Reply-To: <20180109005021.GD76418@paquier.xyz>
  References: <b6d4d767cdbb4c8aadf51a502277f125@USFKL11XG20CN01.mercer.com> <trinity-db855e95-2631-4912-899f-df3ef2320c66-1515455658940@3c-app-mailcom-lxa06> <20180109005021.GD76418@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