Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ih0to-0002Kd-Gl for pgsql-general@arkaria.postgresql.org; Tue, 17 Dec 2019 00:39:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ih0tn-0004TJ-6k for pgsql-general@arkaria.postgresql.org; Tue, 17 Dec 2019 00:39:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ih0tl-0004TC-RS for pgsql-general@lists.postgresql.org; Tue, 17 Dec 2019 00:39:38 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ih0ti-0007RJ-LY for pgsql-general@postgresql.org; Tue, 17 Dec 2019 00:39:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5B147222D5; Mon, 16 Dec 2019 19:39:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 16 Dec 2019 19:39:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=a 1SYPRHPpLDLHi40uqCHtMheUoGUO72K/HXKDssXfE8=; b=v7LXjmqOp5a5h1YLW 39LqbFjDZ6aNSTlJtIwuxx+v4Wg6nEtsftKFx2eAJMXlvLmvmUgv/2dX0J/dcUWH LeFgup8YrdE8Pc+8xplGU/LHsOPlbzfhB1Lv4Ji97P2S85rYa3mG8ZLVbei66q0b gXbscfHEFz59DPtLl3E7bdcamYH/BG5cosz8HYTpukId+/hKn039ce8woA6fiGsi LpgzyjNIms5dKD/uGYOiBd5MFWjSTYS3fVf/ijnPJGU01pEW+e3JADYUH0kG1Bgi dVrk5HVrdplLBBuT9ehGTJ5mHPDvzIjM677tjzouAB92sasP8HFRW2iq6EXmnDUb AjKRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; bh=a1SYPRHPpLDLHi40uqCHtMheUoGUO72K/HXKDssXf E8=; b=p+lJPcg+p/Qjh5lJTiBB0o8vRQNbb3G1J1xc+UfxOwo75MVwgzjggTYaj Z6Ag5ALajQzyr1OxXf4Zgi7Z7oAfYYrPZt9N6CwbxzTanp41rdKmt7rmWqMBid0+ ymylVxOborAGy0mOT9X/wt0XuXLqHanybKFxHFey0umxgi6RvtIEP9ww6cbIxnNn m8w3dElSMiC0b6ZzRs2Q4WVQUZrRQQdfu9Q7LXKbUwhoRCeFg/TRcuARA0B3DgFO 7dHhcypCniaE5tkoxIjFh0hVX/Uw1xT3h7305tsBXYAzjD61keJds5CF8SlBlj1z Rcv8NeTsEYPHeeJBRpKyp/S0v0OiA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtiedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddruddvledrud elfeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 0384D8005A; Mon, 16 Dec 2019 19:39:31 -0500 (EST) Subject: Re: Experiencing error during restore - found unexpected block ID (0) To: Sar , pgsql-general@postgresql.org References: <3SH.IAqA.7kkLeDppu}m.1TzyBS@seznam.cz> From: Adrian Klaver Message-ID: <21efb6c3-bdb7-63be-4ea5-1e55e2439bc0@aklaver.com> Date: Mon, 16 Dec 2019 16:39:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <3SH.IAqA.7kkLeDppu}m.1TzyBS@seznam.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/16/19 9:46 AM, Sar wrote: > Hi, > I have database on Windows Server, running postgresql 10 and I've run > pg_dump with options: -Fc  --verbose -d db_name --file "E:\backup.sql" > -T some_table. > Now when I run pg_restore, also on windows server with postgresql 12, or > on the same original server with postgresql 10, using options > --data-only --verbose -j 8, > or without jobs, but selecting some specific few tables with -t option I > get follwing error: Which Postgres version of pg_dump/pg_restore are you using to do above? > error: pg_restore: error: found unexpected block ID (0) when reading > data -- expected 3142 > This error will only happen on very few tables, most run fine. What happens if you SELECT from these tables in the Postgres 10 instance? Can you show the schema definition for one or more of the problem tables? > Currently, I'm running without jobs and without tables selected with -t, > however I haven't gotten to the specific table that causes the trouble > (the restore will take days), however I already fear when it comes to > that table the same error will trigger. > I guess this could serve as a possible bug report as well, but any > advice as to what I can do is appreciated. -- Adrian Klaver adrian.klaver@aklaver.com