From: Euler Taveira <euler@timbira.com.br>
To: Francisco Olarte <folarte@peoplecall.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: hubert depesz lubaczewski <depesz@depesz.com>
Cc: huang <foggyglass@163.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: vacuumdb parallel has a deadlock detected in 9.5.4
Date: Sun, 2 Oct 2016 00:33:21 -0300
Message-ID: <fa7d451b-f75d-0b95-cef8-57740f9f87dc@timbira.com.br> (raw)
In-Reply-To: <CA+bJJbzs14W3ZJKdSnhQgKRsGY+DF3+_h4CE=K6abVC-6XTh=A@mail.gmail.com>
References: <CA+bJJbx8+SKBU=XUE+HxZHysh9226iMfTnA69AznwRTOEGtR7Q@mail.gmail.com>
<20160929171057.GA426369@alvherre.pgsql>
<CA+bJJbzs14W3ZJKdSnhQgKRsGY+DF3+_h4CE=K6abVC-6XTh=A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 01-10-2016 12:57, Francisco Olarte wrote:
> On Thu, Sep 29, 2016 at 7:10 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
>> Francisco Olarte wrote:
>>
>>> I would propose another behaviour, which I think can solve the problem
>>> without introducing more complex code. Put a couple of flags to vacuum
>>> only catalog tables / non catalog tables ( I believe this can be
>>> served by include/exclude schemas too, which will be even more useful
>>> for other things ). This way one can do a full paralell vacuum of
>>> non-catalog objects followed by a serial one on catalog objects (
>>> which should not be too slow on 'normal' databases )
>>
>> OK, that sounds easier to implement. Are you going to submit a patch?
>
> After looking at vacuumdb source I'm trying to develop and submit a
> patch implementing the following:
>
> Two new flags --include-schema=NAME, --exclude-schema=NAME
>
> Two new flags --system-schemas --non-system-schemas, as alias to
> --include-schema=pg_catalog and --exclude-schema=pg_catalog
>
This is another feature. Also, it will *sometimes* solve the problem.
Why don't you implement your parallel + serialization idea or Alvaro's
two lists idea? I'm not against adding schema options, I just think it's
not the right way to solve the deadlock problem.
--
Euler Taveira Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: euler@timbira.com.br, folarte@peoplecall.com, alvherre@2ndquadrant.com, depesz@depesz.com, foggyglass@163.com
Subject: Re: vacuumdb parallel has a deadlock detected in 9.5.4
In-Reply-To: <fa7d451b-f75d-0b95-cef8-57740f9f87dc@timbira.com.br>
References: <CA+bJJbx8+SKBU=XUE+HxZHysh9226iMfTnA69AznwRTOEGtR7Q@mail.gmail.com> <20160929171057.GA426369@alvherre.pgsql> <CA+bJJbzs14W3ZJKdSnhQgKRsGY+DF3+_h4CE=K6abVC-6XTh=A@mail.gmail.com> <fa7d451b-f75d-0b95-cef8-57740f9f87dc@timbira.com.br>
* 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