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 1jWa7n-0002Yp-P1 for pgsql-general@arkaria.postgresql.org; Thu, 07 May 2020 06:35:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWa7m-0001Z7-D0 for pgsql-general@arkaria.postgresql.org; Thu, 07 May 2020 06:35:14 +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 1jWa7m-0001Z0-5L for pgsql-general@lists.postgresql.org; Thu, 07 May 2020 06:35:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWa7f-0002zt-W3 for pgsql-general@postgresql.org; Thu, 07 May 2020 06:35:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 0476Z6SD004718; Thu, 7 May 2020 02:35:06 -0400 From: Tom Lane To: Mohamed Wael Khobalatte cc: pgsql-general@postgresql.org Subject: Re: pg_restore V12 fails consistently against piped pg_dumps In-reply-to: References: Comments: In-reply-to Mohamed Wael Khobalatte message dated "Thu, 07 May 2020 00:35:48 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4716.1588833306.1@sss.pgh.pa.us> Date: Thu, 07 May 2020 02:35:06 -0400 Message-ID: <4717.1588833306@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mohamed Wael Khobalatte writes: > When doing a parallel pg_restore (v12) against a dump created through a > pipe using an earlier version (11 all the way to 9.6), it fails with the > known error of not finding data offsets. I understand the reasons for it > (potential inability to seek), which is documented in pg_restore. > What I don't understand is why the same `pg_restore -j` worked in earlier > versions (say running pg_restore_v11 against the same dumps). Has anything > changed in terms of ordering? I am actually quite curious what led to this > finally breaking consistently. Without a concrete example it's hard to say, but maybe the issue is that v12 is more aggressive about parallelizing restores --- see 548e50976. regards, tom lane