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 1jbQ1M-00073i-CS for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2020 14:48:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbQ1L-0006cW-91 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2020 14:48:35 +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 1jbQ1L-0006cP-1f for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2020 14:48:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbQ1J-00064L-13 for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2020 14:48:34 +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 04KEmUAt025162; Wed, 20 May 2020 10:48:30 -0400 From: Tom Lane To: David Gilman cc: Justin Pryzby , PostgreSQL Hackers Subject: Re: Warn when parallel restoring a custom dump without data offsets In-reply-to: References: <20200519130740.GO18456@telsasoft.com> Comments: In-reply-to David Gilman message dated "Wed, 20 May 2020 08:55:23 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25160.1589986110.1@sss.pgh.pa.us> Date: Wed, 20 May 2020 10:48:30 -0400 Message-ID: <25161.1589986110@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Gilman writes: >> I think the PG11 >> commit you mentioned (548e5097) happens to make some databases fail in >> parallel restore that previously worked (I didn't check). > Correct, if you do the bisect around that yourself you'll see > pg_restore start failing with the expected "possibly due to > out-of-order restore request" on offset-less dumps. Yeah. Now, the whole point of that patch was to decouple the restore order from the dump order ... but with an offset-less dump file, we can't do that, or at least the restore order is greatly constrained. I wonder if it'd be sensible for pg_restore to use a different parallel scheduling algorithm if it notices that the input lacks offsets. (There could still be some benefit from parallelism, just not as much.) No idea if this is going to be worth the trouble, but it probably is worth looking into. regards, tom lane