Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqXXO-0005gA-UD for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Oct 2016 03:34:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bqXXN-0005Tl-MC for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Oct 2016 03:34:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bqXXL-0005TD-LB for pgsql-bugs@postgresql.org; Sun, 02 Oct 2016 03:33:59 +0000 Received: from [2600:3c02::f03c:91ff:fe70:c491] (helo=apinaye.timbira.com.br) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqXXE-0003Wx-OB for pgsql-bugs@postgresql.org; Sun, 02 Oct 2016 03:33:58 +0000 Received: by apinaye.timbira.com.br (Postfix, from userid 110) id 3106B113E9; Sun, 2 Oct 2016 00:33:41 -0300 (BRT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on apinaye X-Spam-Level: X-Spam-Status: No, score=-100.2 required=4.5 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL,URIBL_BLOCKED,USER_IN_WHITELIST autolearn=no version=3.3.1 Received: from [10.3.2.21] (unknown [181.222.171.172]) by apinaye.timbira.com.br (Postfix) with ESMTPSA id 0D7C011377; Sun, 2 Oct 2016 00:33:32 -0300 (BRT) Subject: Re: vacuumdb parallel has a deadlock detected in 9.5.4 To: Francisco Olarte , Alvaro Herrera References: <20160929171057.GA426369@alvherre.pgsql> Cc: hubert depesz lubaczewski , huang , "pgsql-bugs@postgresql.org" From: Euler Taveira Organization: Timbira Message-ID: Date: Sun, 2 Oct 2016 00:33:21 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c02::f03c:91ff:fe70:c491 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 01-10-2016 12:57, Francisco Olarte wrote: > On Thu, Sep 29, 2016 at 7:10 PM, Alvaro Herrera > 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