From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Sawada Masahiko <sawada(dot)mshk(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
Subject: | Re: cost based vacuum (parallel) |
Date: | 2019-11-06 02:23:09 |
Message-ID: | CAA4eK1+2+wApfFmhcPkiyWnY_ipifT2e7+7rmSrZcrk0XnFTsA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 5, 2019 at 1:42 AM Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> * Andres Freund (andres(at)anarazel(dot)de) wrote:
>
> > That's quite doable independent of parallelism, as we don't have tables
> > or indexes spanning more than one tablespace. True, you could then make
> > the processing of an individual vacuum faster by allowing to utilize
> > multiple tablespace budgets at the same time.
>
> Yes, it's possible to do independent of parallelism, but what I was
> trying to get at above is that it might not be worth the effort. When
> it comes to parallel vacuum though, I'm not sure that you can just punt
> on this question since you'll naturally end up spanning multiple
> tablespaces concurrently, at least if the heap+indexes are spread across
> multiple tablespaces and you're operating against more than one of those
> relations at a time
>
Each parallel worker operates on a separate index. It might be worth
exploring per-tablespace vacuum throttling, but that should not be a
requirement for the currently proposed patch.
As per feedback in this thread, it seems that for now, it is better,
if we can allow a parallel vacuum only when I/O throttling is not
enabled. We can later extend it based on feedback from the field once
the feature starts getting used.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2019-11-06 02:25:50 | Re: cost based vacuum (parallel) |
Previous Message | Amit Langote | 2019-11-06 01:31:36 | Re: v12.0: ERROR: could not find pathkey item to sort |