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 1mbN1n-0002lK-V9 for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 13:13:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbN1m-0005hv-NC for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 13:13:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbN1l-0005hZ-MA for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 13:13:38 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbN1i-000782-LF for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 13:13:37 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F065A5C01CC; Fri, 15 Oct 2021 09:13:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 15 Oct 2021 09:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=J5uOnryO0wL3WQeaTcEIv1pvTa6bUDYeUtTUG7AUptk=; b=BMmGZDa2 l/AFnQAyvA64jGOcGC58dABMMtJsP9Qd/uXUy+jG81xbOTHDXqmosa3vrjUCpbMy vX2usWDJNPxHal7x6GRAbpnfMMy/LyEO6TzvO5vPGX2hnXfKDbmlxD00AVL91vqp RwdL3RNpkj5XLUd8pzXoKnwtY4er7YpfvVxrUUlcT7F/G05bUc+1hyYTtPacl9U6 Nj0tfPDhK2SZw7HFr4fyQtssBuaykaA2qUcAhFq8YdTumyApMBguAspJOoO7uzZG 5zowLzYfqFuYWg3obk0TJcKwt7KY9ruajJ68Ntd4wS/gXXw+MgXnYttEIQs3llP1 t0U/1/5ZCHmbHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddugedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepudejveejffejve duudetvdekieeuiedtvdeileefkeevjedufeeguedvjefhueelnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Oct 2021 09:13:31 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C93E22A06AD; Fri, 15 Oct 2021 10:13:28 -0300 (-03) Date: Fri, 15 Oct 2021 10:13:28 -0300 From: Alvaro Herrera To: Nick Renders Cc: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe Message-ID: <202110151313.dk4fatdj4qii@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <07E90B0D-C41F-4B37-9DAB-469BB708CE37@arcict.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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)