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 1jX4TM-0000uy-Ax for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 14:59:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jX4TL-0006RS-8q for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 14:59:31 +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 1jX4TL-0006RK-17 for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 14:59:31 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jX4TI-0007yr-TY for pgsql-general@postgresql.org; Fri, 08 May 2020 14:59:30 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B2F865C009C; Fri, 8 May 2020 10:59:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 08 May 2020 10:59:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=R iEuf8C5QnNykKFw9V/bLVqndX3kSYlBc6OHEgMU4Yc=; b=nWZaA2DWf6wJ/MNui k+6H5SYzeeLwsUHcpS0fWKgZN34BpMTmaTjsrBoG1cO46rSdA200ASWTEZeN+bTS NN3usUEwfM4uLhR+jIP2j4wJtyPuHHouIKCbiA/ic159//AJUK/9ocZ2M6NK39iH MLG/bBvkFvBAUTNWf4en26JVLisw1etHVaW6llGKBZQssuy13GMrLTJCPCUmDKxH 0b3eJIBzdFjh/unoRAligkcpJQR4jFfIVILhbrcj9E7F2ZB/d6oUIvT1ygGMEgeV siaxWCjcty3jPwhTEFhVZmZb0voHYtG/MzTQB3gZiQKIA77fmgbzHbhp5NUJf+2G +ozoQ== 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:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=RiEuf8C5QnNykKFw9V/bLVqndX3kSYlBc6OHEgMU4 Yc=; b=Jvlk1iGOoLEP5ij09yTcp8fOX+3lSl0VKiPDxH/hDvfA2WriM47biOZ3e N6+fBH4++ZmcbWIRFokaXThTEnfc7iTgO4+iMo+HQON4jSWQY9SWs4IpcuyOsCb8 b7hJ4dVye/f5Z85FeVpkm0GoZnGRtAJDI0hP6mkPuQF8aswoq9LkcP/ImYVEti/8 b2jL6Ml69FLvwV+O8YQqrX5LZv+Goe61s6+9Ni5Eh3IskKwsjB6uP35LmzxGSALv TLAxBlr6KX1uCCIw7wO2iaFfnEDlKRKzfNoNXuZdQWeDivqwwiP+bBmg462NCaNj pfvziu9zxIiFA2h/2GVmm56xaCvmw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrkeefgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepteejvdetffejuedvleeifeefheeutdfhgfdvhffhhfek vdduveegvdejudefgfevnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 95FDC3280067; Fri, 8 May 2020 10:59:26 -0400 (EDT) Subject: Re: pg_restore V12 fails consistently against piped pg_dumps To: Laurenz Albe , Mohamed Wael Khobalatte , Tom Lane Cc: pgsql-general@postgresql.org References: <4717.1588833306@sss.pgh.pa.us> <9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at> From: Adrian Klaver Message-ID: <7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com> Date: Fri, 8 May 2020 07:59:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/7/20 11:47 PM, Laurenz Albe wrote: > On Thu, 2020-05-07 at 11:04 -0400, Mohamed Wael Khobalatte wrote: >> Thanks Tom, I will review those changes tonight. In the meantime, to >> reproduce, I run the following: >> >> - createdb test >> - create some tables, I used a simple loop to create 10 empty ones. >> - pg_dump -v -Fc test | tee test.dump > /dev/null (so it's through a >> pipe, same as if the file is streamed through curl which was the >> original case) >> - pg_restore -j4 --verbose --clean --no-acl --no-owner -d test test.dump >> >> That should fail consistently. pg_restore_12 and pg_dump_12. Same >> passes in if I run in earlier versions. > > I just tried that and didn't encounter any errors. I did: pg_dump -d production -U postgres -Fc |tee test.dump > /dev/null pg_restore -j4 -d production_test -U postgres test.dump pg_restore: error: could not find block ID 4804 in archive -- possibly due to out-of-order restore request, which cannot be handled due to lack of data offsets in archive pg_restore: error: could not find block ID 4806 in archive -- possibly due to out-of-order restore request, which cannot be handled due to lack of data offsets in archive pg_restore: error: a worker process died unexpectedly Whereas a restore without -j4 succeeded. > > Please come up with a more complete example. > > Are you OS user "postgres" when you run that? > > Yours, > Laurenz Albe > -- Adrian Klaver adrian.klaver@aklaver.com