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 1mn4hB-0006Di-0k for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Nov 2021 20:04:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn4gd-0001Bc-UI for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Nov 2021 20:04:11 +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 1mn4gd-0001BT-Lz for pgsql-bugs@lists.postgresql.org; Tue, 16 Nov 2021 20:04:11 +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 1mn4ga-00030f-JR for pgsql-bugs@lists.postgresql.org; Tue, 16 Nov 2021 20:04:10 +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 1AGK46r22254204; Tue, 16 Nov 2021 15:04:06 -0500 From: Tom Lane To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_restore depending on user functions In-reply-to: References: <2011525.1636911069@sss.pgh.pa.us> <2016240.1636915579@sss.pgh.pa.us> <2048100.1636934771@sss.pgh.pa.us> <2124696.1636991365@sss.pgh.pa.us> <2157331.1637014065@sss.pgh.pa.us> <2230909.1637080154@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= message dated "Tue, 16 Nov 2021 21:57:38 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2254202.1637093046.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Nov 2021 15:04:06 -0500 Message-ID: <2254203.1637093046@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?=3D writes: > --Line 4048: > CREATE TABLE bpd.class ( There are still a lot of problems in this example: * references to nonexistent columns val_text, val_bytea, val_json * int_class_ext refers to int_class_ready, int_class_path, bpd.object, which weren't supplied I figured maybe I didn't need int_class_ext, since it doesn't appear to be referenced elsewhere. But with the objects I have, pg_dump doesn't do anything wrong; the output can be loaded just fine. Please, send a self-contained SQL script that you have actually tested to be loadable, and which produces a database that causes pg_dump to do the wrong thing. regards, tom lane