pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Wed, 17 Apr 2019 12:52:37 -0400
Message-ID: <3366.1555519957@sss.pgh.pa.us> (raw)
In-Reply-To: <15767-3ae8ebe5b8663978@postgresql.org>
References: <15767-3ae8ebe5b8663978@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> 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





view thread (2+ messages)

Message-ID: <3366.1555519957@sss.pgh.pa.us>
Permalink:  ../3366.1555519957@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3366.1555519957@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, ana-mur21s@yandex.ru
  Subject: Re: BUG #15767: Export fails 'worker process died unexpectedly' but no error in pg_dump
  In-Reply-To: <3366.1555519957@sss.pgh.pa.us>
  References: <15767-3ae8ebe5b8663978@postgresql.org> <3366.1555519957@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