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 1tJKeN-002Fey-0i for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2024 22:48:47 +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 1tJKeJ-008tFz-E5 for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2024 22:48:44 +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 1tJKeI-008tEZ-2A for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2024 22:48:44 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.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 1tJKeE-001G3V-Fa for pgsql-general@postgresql.org; Thu, 05 Dec 2024 22:48:42 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 7A99411401AC; Thu, 5 Dec 2024 17:48:36 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 05 Dec 2024 17:48:36 -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=1733438916; x=1733525316; bh=4cUUg0aaNkSPm4Nu1uvSiKNISo7X994RoHz0xPlD1YY=; b= cbtfQ48vIv44m4X8C0M/TrGht90A4yYOIEj6CqKHhtrm8rg7bdlm6PfXkF58vDGa LR104tR2HvT22GXo6s6pFC9th7oi4ZWnu7Mgi/Ja5/eMxQ5WJ217LmuVpQyIa8me b0CAE+LUYOKnYpKPHZvMDNkywyUvvORXgwI4j7BRAvPn2ZIIVw9ct2baFlqWmKQv c/JiHzsI/9aOm9+l5YPs5pZiOk5lTrts2/vTgWOzrTlDy7zaAUdqSldlu2ofvfSX GxkzBkv2ZQnWYNeaJI40Ho5GEpEV+SzQjghQ4USCmgtOH6Pz7gwoqHF1DghQeyka WRJVRDZWhF1qTp1X3aE/pQ== 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=1733438916; x= 1733525316; bh=4cUUg0aaNkSPm4Nu1uvSiKNISo7X994RoHz0xPlD1YY=; b=Q pQOuJbWxlqMj2LAFOS2Yb2u5RBmV05zdqn3j4yYTSg8DNZ6AymHndxzbkm9G4UQ7 CZcbc29bl5Nf3hJ6qjKI6yL+HcFwT747+hy37JhVgGpE5RmAEEsGzYay90u+PvhE 6lhKT+YveGI5kNQ+LxZAf2NWabEnhCVvKJhAtj6bpQmx/CsTBX48PqCbG8tr18rK QuL2tr7ePlT4VYMvZjxA7v447hEWocwpPkGCMWE2wf7iY8Oy+DCaKSuFY/9tIxOV H35N+Sstzc6bm1jTjf3qItf4CQ9qSAiqJ+x76VEEnvxcFLMY7/mwI6lywPPC+B0y xz8bhEUe1q14YJKVQ6vhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieekgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeejvdfggfelfffftefhvddt vddttdelgeetiedvvdeghedufeegjeekgfegtedtvdenucffohhmrghinhepshhqlhdrih htpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpd hnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpohhp vghrihhgsgihsehmrghilhgsohigrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrph hghhdrphgrrdhushdprhgtphhtthhopegurghvihgurdhgrdhjohhhnhhsthhonhesghhm rghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrh gvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Dec 2024 17:48:35 -0500 (EST) Message-ID: Date: Thu, 5 Dec 2024 14:48:34 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Errors when restoring backup created by pg_dumpall To: PopeRigby , Tom Lane Cc: "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> <4ab662d8-57cc-471f-8a58-cfd71d1cea22@aklaver.com> <1475512.1733090108@sss.pgh.pa.us> <19d5f2c7-1252-4442-accb-8aa2cb289ad0@mailbox.org> Content-Language: en-US From: Adrian Klaver In-Reply-To: <19d5f2c7-1252-4442-accb-8aa2cb289ad0@mailbox.org> 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/5/24 14:32, PopeRigby wrote: > On 12/1/24 13:55, Tom Lane wrote: >> Adrian Klaver writes: >>> On 12/1/24 13:14, Tom Lane wrote: >>>> 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 >>> ); >> Ah!  Then the failure occurs because we do a planning pass on the >> GENERATED expression (I don't remember exactly why that's needed >> during CREATE TABLE).  So maybe messing with the dump script's >> search_path setting *would* be enough to get you past that. >> >> Having said that, the CREATE should have been seeing the new-style >> definition of ll_to_earth() if the 1.2 version of earthdistance >> was correctly installed. >> >>             regards, tom lane > > So, is there anything I can do to fix this particular backup? I'm kind > of stuck here. There's also the issue with it for some reason failing to > connect to the lldap database after it literally just created it. Some > weird things going on. > In the pg_dumpall sql script did you change: SELECT pg_catalog.set_config('search_path', '', false); to SELECT pg_catalog.set_config('search_path', 'public', false); ? Show us the connection error you got for the lldap database. -- Adrian Klaver adrian.klaver@aklaver.com