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 1lrYFr-00085E-3N for pgsql-admin@arkaria.postgresql.org; Fri, 11 Jun 2021 03:54:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrYFp-0003x5-Us for pgsql-admin@arkaria.postgresql.org; Fri, 11 Jun 2021 03:54:45 +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 1lrYFp-0003ww-Lv for pgsql-admin@lists.postgresql.org; Fri, 11 Jun 2021 03:54:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrYFm-0005Ov-VO for pgsql-admin@postgresql.org; Fri, 11 Jun 2021 03:54:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15B3sfqE1838439; Thu, 10 Jun 2021 23:54:41 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin Subject: Re: pg_dump directory format and proper ordering In-reply-to: References: <1832919.1623376575@sss.pgh.pa.us> Comments: In-reply-to Wells Oliver message dated "Thu, 10 Jun 2021 20:37:17 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1838437.1623383681.1@sss.pgh.pa.us> Date: Thu, 10 Jun 2021 23:54:41 -0400 Message-ID: <1838438.1623383681@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wells Oliver writes: > Is there a potential issue when restoring in parallel? Not supposed to be ... > I notice for example it fails to re-create some mat views I have in schema > B as they query from some table in schema A that hasn't been created yet at > that moment. You can break it with user-defined functions, because pg_dump can't really see into the function bodies to understand what they might reference. But a matview that doesn't contain anything like that should Just Work. If you have a counterexample (against a reasonably recent PG version), please file a bug report. regards, tom lane