Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Nick Renders <postgres(at)arcict(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe
Date: 2021-10-15 13:13:28
Message-ID: 202110151313.dk4fatdj4qii@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2021-Oct-15, Nick Renders wrote:

> Hello,
>
> I have been trying to import a Postgres 11 database into Postgres 14, but
> the pg_restore command exits with the following message:
>
> pg_restore: error: could not write to the communication channel: Broken
> pipe
>
> The command I sent looks like this:
>
> /Library/PostgreSQL/14/bin/pg_restore -h localhost -p 48100 -U postgres -w
> -C -d template1 -j 24 -Fd /Volumes/Migration/dbname --verbose
>
> It seems that the multiple jobs parameter is the cause. If I specify "-j 1",
> the command works without problems. If I specify "-j 2" or higher, I get the
> above error after a few seconds.

Hi,

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. I don't know anything about
macOS so I can't help you with that. I can tell you however that this
error has not been reported previously.

--
Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/
"I dream about dreams about dreams", sang the nightingale
under the pale moon (Sandman)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2021-10-15 13:52:40 Re: "two time periods with only an endpoint in common do not overlap" ???
Previous Message Maciek Sakrejda 2021-10-15 12:53:27 Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe