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 1tHrH3-00AK6Q-7n for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 21:14:37 +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 1tHrH0-00AuIC-6l for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 21:14:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHrGz-00Au4V-RL for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 21:14:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHrGw-000XqY-Md for pgsql-general@postgresql.org; Sun, 01 Dec 2024 21:14:32 +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 4B1LEI161470487; Sun, 1 Dec 2024 16:14:18 -0500 From: Tom Lane To: Adrian Klaver cc: PopeRigby , "David G. Johnston" , "pgsql-general@postgresql.org" Subject: Re: Errors when restoring backup created by pg_dumpall In-reply-to: <92405f98-7f0c-4442-8252-697352daefc1@aklaver.com> References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> <41791b6d-aaf5-4fed-9cc3-e89bc49e8637@mailbox.org> <1257068.1733025493@sss.pgh.pa.us> <06425038-e012-4bac-aec1-d9541436f893@mailbox.org> <92405f98-7f0c-4442-8252-697352daefc1@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sun, 01 Dec 2024 13:08:28 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1470485.1733087658.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 01 Dec 2024 16:14:18 -0500 Message-ID: <1470486.1733087658@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > On 12/1/24 12:05, PopeRigby wrote: >> I'm still getting this error: >> >> psql:all.sql:4102: ERROR:  type "earth" does not exist >> LINE 1: ...ians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth > The issue is still this: > SELECT pg_catalog.set_config('search_path', '', false); > in the pg_dumpall output. We've done that for some time, though. > As was suggested before change the above to: > SELECT pg_catalog.set_config('search_path', 'public', false); > in the pg_dumpall output file. I'm betting that won't help. The new-in-17 behavior is that maintenance commands such as CREATE INDEX internally force a "safe" search_path, regardless of the prevailing setting. It would be useful to know what is the command at line 4102 of all.sql. regards, tom lane