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 1mmPVp-0004v3-8v for pgsql-general@arkaria.postgresql.org; Mon, 15 Nov 2021 00:06:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mmPVn-00061I-Sv for pgsql-general@arkaria.postgresql.org; Mon, 15 Nov 2021 00:06:15 +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 1mmPVn-000616-I7 for pgsql-general@lists.postgresql.org; Mon, 15 Nov 2021 00:06:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmPVl-0006XP-BH for pgsql-general@lists.postgresql.org; Mon, 15 Nov 2021 00:06:15 +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 1AF06BlQ2048101; Sun, 14 Nov 2021 19:06:11 -0500 From: Tom Lane To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= cc: pgsql-general@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> Comments: In-reply-to =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= message dated "Mon, 15 Nov 2021 03:49:27 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2048099.1636934771.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 14 Nov 2021 19:06:11 -0500 Message-ID: <2048100.1636934771@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: > =D0=B2=D1=81, 14 =D0=BD=D0=BE=D1=8F=D0=B1. 2021 =D0=B3. =D0=B2 23:46, To= m Lane : >> This is not "details", this is an evidence-free assertion. Please show >> a concrete example of problematic functions. > Ok, I'll do it. > [ example ] This is pretty far from being a self-contained example; I had to guess at the definitions of several types that you didn't provide. Having done so, though, the set of functions and types seem to dump and restore just fine. So I still don't see any problem here. Possibly worth noting is that pg_dump is careful to include this in its output script: SET check_function_bodies =3D false; Without that, I can believe that you'd have some trouble restoring these functions, since pg_dump doesn't know anything about the cross-references appearing in the function bodies. But with that, there don't appear to be any troublesome cross-references here. regards, tom lane