pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Renders <postgres@arcict.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe
Date: Mon, 18 Oct 2021 13:42:22 +0200
Message-ID: <BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com> (raw)
In-Reply-To: <963372.1634317694@sss.pgh.pa.us>
References: <202110151313.dk4fatdj4qii@alvherre.pgsql>
	<963372.1634317694@sss.pgh.pa.us>

Thank you for all the feedback and suggestions.

It seems that the "-h localhost" parameter is triggering the issue. If I 
leave it out, pg_restore works without problems with multiple jobs. I 
have also tried specifying the IP number instead of "localhost", but 
that results in the same error.

I see now that our original pg_restore script does not include the -h 
parameter. Somehow, it has snuck in my commands when testing Postgres 
14. That might mean that the same issue exists in previous versions as 
well. I will investigate further.

Nick


On 15 Oct 2021, at 19:08, Tom Lane wrote:

> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> Yeah, pg_dump in parallel mode uses a pipe to communicate between 
>> leader
>> and workers; the error you see is what happens when a write to the 
>> pipe
>> fails.  It sounds to me like something in the operating system is
>> preventing the pipes from working properly.
>
> BTW, I think a more likely explanation is "one of the pg_dump or
> pg_restore worker processes crashed".  Why that should be is still
> a mystery though.
>
> 			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com>
Permalink:  ../BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com/
Also on:    postgresql.org/message-id/BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com

 · 

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: postgres@arcict.com
  Subject: Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe
  In-Reply-To: <BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com>
  References: <202110151313.dk4fatdj4qii@alvherre.pgsql> <963372.1634317694@sss.pgh.pa.us> <BF53EC17-9C2C-409C-B0E3-CD0114842CF7@arcict.com>

* 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