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 1tHrcS-00AMma-MZ for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 21:36:44 +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 1tHrcP-00BCK6-QG for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 21:36:43 +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 1tHrcP-00BCJw-EX for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 21:36:42 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHrcN-000Y0h-Bn for pgsql-general@postgresql.org; Sun, 01 Dec 2024 21:36:42 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 35DB11380576; Sun, 1 Dec 2024 16:36:38 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 01 Dec 2024 16:36:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733088998; x=1733175398; bh=WylXPHV2C/aiACexTYZqQH039UoEYTOGZqlA/IA7POk=; b= mvOM2d3tRWMhH5MrFwFkKeod/d17ERox8Qqdlz/BujnfC5zQjyw9iJpTwGVFJD2G j6sCgB/uR+jeCa68EGO0NZ3Zh4257UQd3K3ZhNwfIOHNKcI1ZUCCay59NpIGR1GE M0MhuH5MdD8IKXc+OeV6Mic7FixmqyMe3ZsfBQ/1lJrYyOM1d91X73It0B8PwcKu 0g+LgdiYVnsdA/zm0vhlRG9XwPZbwqyaSiEbws/2PtERLL6+F0jJLM95PC01ObeJ AC0vJ4wv96xadCLt2T0pssfNaf7AB8jIh1sGM4fkqQkgyNmrUXZzXJsZ2k9zFY6K UznDinyhulpStJmSRc6N9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733088998; x= 1733175398; bh=WylXPHV2C/aiACexTYZqQH039UoEYTOGZqlA/IA7POk=; b=u pXNH5E08foYD/SPdvRyVegGOpC3NHQxzE4M87KU3DcKyz5Kts0DAPbPyzinCyeCt DwjQv1Q5xNpEucFeKiBVLVMGgZnx5W0Vbz4WfUChWMWMgMmkBAAbSDoIQzChox7+ ulEnT527ic4Dsaz1JPXe0PmoHc630iaHX8L2p1RWHR0vQPwWdrtMR4NVo5U2P2oF GOYzk2BicdfwCpnXcB4w/8zUy1Gw+49T0n4Mp2MWXgzJqbKvQISTanOugKd/xHLj lKGk1oYvJVig1s2kHNmvtcu8px9XL11bHfSglLA2SmQ/UuOXQ/aRnlbEpdddQMb5 5d84Mlf7Lhnr+MI33grjw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheejgddugeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepjedvgffgleffffethfdv tddvtddtleegteeivddvgeehudefgeejkefggeettddvnecuffhomhgrihhnpehsqhhlrd hithdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh dpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepthhg lhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopehpohhpvghrihhgsgihsehmrg hilhgsohigrdhorhhgpdhrtghpthhtohepuggrvhhiugdrghdrjhhohhhnshhtohhnsehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtgh hrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Dec 2024 16:36:36 -0500 (EST) Message-ID: <4ab662d8-57cc-471f-8a58-cfd71d1cea22@aklaver.com> Date: Sun, 1 Dec 2024 13:36:36 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Errors when restoring backup created by pg_dumpall To: Tom Lane Cc: PopeRigby , "David G. Johnston" , "pgsql-general@postgresql.org" 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> <1470486.1733087658@sss.pgh.pa.us> Content-Language: en-US From: Adrian Klaver In-Reply-To: <1470486.1733087658@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/1/24 13:14, Tom Lane wrote: > 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. It is here: https://gist.github.com/poperigby/fcb59eb6c22c6051800e06a0ec482b49 CREATE TABLE public.geodata_places ( id integer NOT NULL, name character varying(200) NOT NULL, longitude double precision NOT NULL, latitude double precision NOT NULL, "countryCode" character(2) NOT NULL, "admin1Code" character varying(20), "admin2Code" character varying(80), "modificationDate" date NOT NULL, "earthCoord" public.earth GENERATED ALWAYS AS (public.ll_to_earth(latitude, longitude)) STORED, "admin1Name" character varying, "admin2Name" character varying, "alternateNames" character varying ); > > regards, tom lane -- Adrian Klaver adrian.klaver@aklaver.com