From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Millas <marc.millas@mokadb.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: how to "explain" some ddl
Date: Tue, 14 Jul 2020 13:05:14 -0400
Message-ID: <2875990.1594746314@sss.pgh.pa.us> (raw)
In-Reply-To: <CADX_1aZkUpMZ__Zje1z2i5P6hXU7j_nWHt6LEeP920UEBot6hg@mail.gmail.com>
References: <CADX_1aZkUpMZ__Zje1z2i5P6hXU7j_nWHt6LEeP920UEBot6hg@mail.gmail.com>
Marc Millas <marc.millas@mokadb.com> writes:
> We would like to understand where an alter table attach partition spend its
> time.
> to my understanding, explain doesnt do this.
Nope :-(. As our DDL commands have gotten more complicated, there's
been some discussion of adding that, but nothing's really been done
yet.
There is some progress-monitoring support for some DDL commands now,
but that's not quite the same thing.
> for a BI job we have a partitionned table with 1800+ partitions.
TBH I'd recommend scaling that down by at least a factor of ten.
We are not at a point where you can expect that all operations will
be cheap even with thousands of partitions. We may never be at that
point, although people continue to chip away at the bottlenecks.
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 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: tgl@sss.pgh.pa.us, marc.millas@mokadb.com
Subject: Re: how to "explain" some ddl
In-Reply-To: <2875990.1594746314@sss.pgh.pa.us>
References: <CADX_1aZkUpMZ__Zje1z2i5P6hXU7j_nWHt6LEeP920UEBot6hg@mail.gmail.com> <2875990.1594746314@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