Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGnnk-00014f-Jf for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Apr 2019 16:52:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGnnj-0007bR-2I for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Apr 2019 16:52:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGnni-0007WF-PD for pgsql-bugs@lists.postgresql.org; Wed, 17 Apr 2019 16:52:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGnnb-0001fm-Sm for pgsql-bugs@lists.postgresql.org; Wed, 17 Apr 2019 16:52:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3HGqb73003367; Wed, 17 Apr 2019 12:52:37 -0400 From: Tom Lane To: ana-mur21s@yandex.ru cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15767: Export fails 'worker process died unexpectedly' but no error in pg_dump In-reply-to: <15767-3ae8ebe5b8663978@postgresql.org> References: <15767-3ae8ebe5b8663978@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 17 Apr 2019 09:16:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3365.1555519957.1@sss.pgh.pa.us> Date: Wed, 17 Apr 2019 12:52:37 -0400 Message-ID: <3366.1555519957@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > [DEBUG] pg_dump: [parallel archiver] could not obtain lock on relation > "collection_result" > This usually means that someone requested an ACCESS EXCLUSIVE lock on the > table after the pg_dump parent process had gotten the initial ACCESS SHARE > lock on the table. > [DEBUG] pg_dump: [parallel archiver] a worker process died unexpectedly OK, that's an expected (if not very desirable) outcome if other processes are taking exclusive locks concurrently with a parallel pg_dump run. Right now the only answers are to be willing to retry the pg_dump run, or not use parallel dump. > If later versions of pg_dump throw this as an "error" or "warning" or > something better, then maybe we can detect it as before by checking the exit > status of non-zero? Do we have way to detect it? You can't really tell it from any other pg_dump failure, no, except by examining the error printout. I posted some ideas about a possible way to remove this failure condition at https://www.postgresql.org/message-id/32178.1555515260@sss.pgh.pa.us but that's just speculation at this point. It's not really clear that it'd remove all possible failures of this sort, anyway: a pg_dump run is going to try to acquire access share locks on every table in the database, more or less, and if you've got other things insisting on access exclusive locks in parallel with that, the odds of deadlock failures seem pretty high. regards, tom lane