From: Nick Renders <postgres@arcict.com>
To: pgsql-general@lists.postgresql.org
Subject: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe
Date: Fri, 15 Oct 2021 14:21:01 +0200
Message-ID: <07E90B0D-C41F-4B37-9DAB-469BB708CE37@arcict.com> (raw)
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.
Postgres is running on a Mac Pro 12-core machine, so it has plenty of
resources at its disposal. The config file is a copy of the Postgres 11
configuration, which has no problem with multiple jobs.
Furthermore, the pg_dump command seems to have the same issue as well.
The following command:
/Library/PostgreSQL/14/bin/pg_dump -h localhost -p 48100 -U postgres -w
ServicePGR_UTF8 -j 24 -Fd -f /Volumes/Migration/dbname --verbose
will stop prematurely with the following error:
pg_dump: error: could not write to the communication channel: Broken
pipe
Does this sound familiar to anyone? Is it an issue with the new Postgres
14 release, or is there something else that might be causing this?
Best regards,
Nick Renders
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: <07E90B0D-C41F-4B37-9DAB-469BB708CE37@arcict.com>
References: <07E90B0D-C41F-4B37-9DAB-469BB708CE37@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