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 1tJKOr-002E6d-8u for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2024 22:32:45 +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 1tJKOo-008nP5-NW for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2024 22:32:43 +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 1tJKOo-008nNm-9W for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2024 22:32:43 +0000 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJKOm-001FKG-Jz for pgsql-general@postgresql.org; Thu, 05 Dec 2024 22:32:42 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Y48KB72xLz9tCb; Thu, 5 Dec 2024 23:32:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1733437951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XSxNOCOSnsOgG0z21JRRhmyZzY44x+C0JQw/Vo0UFAE=; b=OTTqXtVOcSnKcM8B1Xiffr/drO8nEjqQy02EvH5lrK0dwPQVDUHqSG5dmY9GzY8joj5h+2 NFLiIxY2enQzNqpoq2QIjdqTsfyc9hTVtCGXgGYhp0qCZ/qBZeyD2eff6owtYrDP1vxmIO py2UuvNfd6W8DUI7Z8apfZqORZVhj6LSOhvnqs12j4l9pCye8KeGUKrc8+StzcC43PxEk5 b9tnCjncpNF2LbVnOMK2uvriPldADi0v6kkWdpff40GfS2WO615/b5VFHjJLrHWTsfJB43 O1lzTX0D1/f8mp8TG2x9+vBNUY7HL8zMRs/9TSaAAGY+YfGr9Nug3nS/dQxKmw== Message-ID: <19d5f2c7-1252-4442-accb-8aa2cb289ad0@mailbox.org> Date: Thu, 5 Dec 2024 14:32:11 -0800 MIME-Version: 1.0 Subject: Re: Errors when restoring backup created by pg_dumpall To: Tom Lane , Adrian Klaver 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> Content-Language: en-US From: PopeRigby In-Reply-To: <1475512.1733090108@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-ID: cd340e5a2a696ebd333 X-MBO-RS-META: 5yzq486yrup73pfg1zfxpxfouyzxds79 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.