Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHb7J-008fqF-Qj for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 03:59:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tHb7G-004f9m-6A for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 03:59:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHb7F-004f9e-Qn for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 03:59:27 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHb7E-000QOi-5B for pgsql-general@postgresql.org; Sun, 01 Dec 2024 03:59:25 +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 4B13wDqE1257069; Sat, 30 Nov 2024 22:58:13 -0500 From: Tom Lane To: "David G. Johnston" cc: PopeRigby , Adrian Klaver , "pgsql-general@postgresql.org" Subject: Re: Errors when restoring backup created by pg_dumpall In-reply-to: References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> <41791b6d-aaf5-4fed-9cc3-e89bc49e8637@mailbox.org> Comments: In-reply-to "David G. Johnston" message dated "Sat, 30 Nov 2024 20:45:55 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1257067.1733025493.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 30 Nov 2024 22:58:13 -0500 Message-ID: <1257068.1733025493@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > Ok, so the error is not emanating from your code but rather the body of = the > ll_to_earth function defined in the earthdistance extension. Yeah. That is CREATE FUNCTION ll_to_earth(float8, float8) RETURNS earth LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE AS 'SELECT cube(cube(cube(earth()*cos(radians($1))*cos(radians($2))),earth= ()*cos(radians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth'; which is problematic: the function calls are not schema-qualified and there's not a really easy way to fix that. There's work afoot to fix that [1], but it's not committed yet let alone in any shipping version. Nonetheless, your best bet for fixing this might be to install the earthdistance 1.2 files from the latest patchset in that thread. regards, tom lane [1] https://www.postgresql.org/message-id/flat/3395418.1618352794@sss.pgh.= pa.us