From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Large number of partitions of a table
Date: Mon, 17 Jan 2022 10:36:43 -0500
Message-ID: <4115872.1642433803@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZ9NnniDeSsMrv1ewZr8BY5XmHvbo=7HfEuTNY39KgkdA@mail.gmail.com>
References: <YeTYA63gEXNePfkv@admin.sibptus.ru>
<3919502.1642393668@sss.pgh.pa.us>
<YeUAx56Juri43xGY@admin.sibptus.ru>
<671340a5-1960-e5dc-1d09-4b7f36cda2c8@gmail.com>
<3992395.1642431512@sss.pgh.pa.us>
<CAKFQuwZ9NnniDeSsMrv1ewZr8BY5XmHvbo=7HfEuTNY39KgkdA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Mon, Jan 17, 2022 at 7:58 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Ron <ronljohnsonjr@gmail.com> writes:
>>> I find it hard to believe that you'll *never* run a report against more
>>> customers than are in a single partition.
>> Yeah, I'm a little suspicious of that.
> Is "never" really the correct threshold here?
It is if you've pushed things to the point where, say, "select count(*)
from partitioned_table" will fail outright. I don't have a lot of faith
in system designs that assume there will never be any ad-hoc queries
that are outside your normal pattern.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Large number of partitions of a table
In-Reply-To: <4115872.1642433803@sss.pgh.pa.us>
* 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