pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Snaidero <bensnaidero@geotab.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_dump (COPY) hanging intermittently
Date: Thu, 27 Jun 2019 14:34:46 -0400
Message-ID: <3132.1561660486@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEPE5bPJHCjGw+9piTw8Mmhm3aDoGgq-fsD2nK1qR1ExtuxWmw@mail.gmail.com>
References: <CAEPE5bPJHCjGw+9piTw8Mmhm3aDoGgq-fsD2nK1qR1ExtuxWmw@mail.gmail.com>

Ben Snaidero <bensnaidero@geotab.com> writes:
> I am running into a strange issue with Postgres 10 when using pg_dump with
> the directory format and jobs parameter set it intermittently hangs.  Seems
> to occur less frequently the lower I set the jobs parameter but does happen
> eventually even when set to 2 (could not reproduce when jobs=1).  I've
> tested with Postgres 11 and no matter how high I set the jobs parameter it
> never hangs (tested all the way up to jobs=8).  Also with Postgres 10 and
> other formats I don't run into the issue.  Here are my server specs and
> software versions (OS and Postgres)

FWIW, it looks like the hang is on the client side (i.e., pg_dump itself).
The one active server process is just trying to send COPY data and is
waiting for the client to take it.  So I'm wondering about deadlocks
inside parallel pg_dump.

This doesn't present any obvious answer, because there is not much
difference between the parallel pg_dump logic in 10 and 11.  But
maybe you could get stack trace(s) out of the stuck pg_dump job on 10?
(Keep in mind that unlike the backend, the pg_dump process will have
multiple threads in this situation.)

Another thing you could do to triangulate is to verify that v11 pg_dump
is okay working against the v10 server.  Unfortunately the other
combination can't be tested, but this'd be enough to exonerate the v10
server side.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <3132.1561660486@sss.pgh.pa.us>
Permalink:  ../3132.1561660486@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3132.1561660486@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bensnaidero@geotab.com
  Subject: Re: pg_dump (COPY) hanging intermittently
  In-Reply-To: <3132.1561660486@sss.pgh.pa.us>
  References: <CAEPE5bPJHCjGw+9piTw8Mmhm3aDoGgq-fsD2nK1qR1ExtuxWmw@mail.gmail.com> <3132.1561660486@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