Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbMD0-0000dm-DI for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 12:21:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbMCz-0006Wp-6z for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 12:21:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbMCy-0006Wf-Rx for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 12:21:08 +0000 Received: from mail.arcict.com ([91.183.106.63] helo=arcict.com) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbMCt-0005pf-B7 for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 12:21:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=arcict.com; s=cra20arc; bh=dmaSf/toEOTqKjE35wESvGtoWFsZ1EmQIfzrO0dG/5E=; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; b=IOJghwiqfH031/ pGJGHqKb2otfYe16gRu9Ep3sCN4PjLadbuYqdBUWTeNhHmFl+YvDNBm5QSh1pS1l/EGt63XCfy62I FRJnkbuAsUlkCyHaPKTo46uJxBZEKzO4zGksPvFTd8ZnCW/KOX8PpxOa94N75rNBnfMI7Zk8Y7pks ug8= Received: from [192.163.1.153] (HELO [169.254.47.36]) by arcict.com (CommuniGate Pro SMTP 6.3.6) with ESMTPS id 5223734 for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 14:21:01 +0200 From: "Nick Renders" 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 X-Mailer: MailMate (1.13.2r5673) Message-ID: <07E90B0D-C41F-4B37-9DAB-469BB708CE37@arcict.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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