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 1tHCaa-004bu8-4p for pgsql-general@arkaria.postgresql.org; Sat, 30 Nov 2024 01:48:04 +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 1tHCaX-00CMOL-LA for pgsql-general@arkaria.postgresql.org; Sat, 30 Nov 2024 01:48:02 +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 1tHCaV-00CMNx-Vy for pgsql-general@lists.postgresql.org; Sat, 30 Nov 2024 01:48:02 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHCaT-000FmX-QC for pgsql-general@postgresql.org; Sat, 30 Nov 2024 01:48:00 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 98C362540112; Fri, 29 Nov 2024 20:47:56 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 29 Nov 2024 20:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=1732931276; x=1733017676; bh=sf4P0SrDSAIOyLtGxrnpt626qpDo6fnvq9l809LxLcA=; b= EILYqvgJ8756IU0WIt4nXsTBRp5HyOOF2vA/M64IWP3MQ+SAZOe9iXUXD4I5wy3F T9KZUZodDsn3X5wXDB4A5D1B8vHEqTuDq0JC6noefek84ykl+Wm/LlVJe9fBIMFG w39K6mWbygxyQ6BuV5AhkY3cqiV781Tglm5oAkgXAlSDT7pAoWfdFm81YXEcwPwz nPh/Uae4Gcm8+zPekZcP7R3MIoOE+EmV4QOGWa7q4hVdcu1I6byzoy2KziMTImwr OFslf+clcG7vn8xvcTuL4+Lsm0g/WQke+DqQuzwJVJRkvuNRWlC3ssozJNqTgnnM 8K7TlcwzIO+a3rv9V7CZhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1732931276; x=1733017676; bh=s f4P0SrDSAIOyLtGxrnpt626qpDo6fnvq9l809LxLcA=; b=gD6kjuIgRX2UmbHlY pAwiq1E41mk4ZY9CjUL0oK+CMFyXQqy6jm+5FxU5XzN4ixIZzdZXX3BDr3EfpQMQ LT2FqSBDtMd9UUYhClae1e84NmnaEOY/BMD8DFBSgPGovk6JkHX1bV48/cxed3AX aRaQFOZi36hoPz4hmITmBq7ba5+/6OZY2wTb+111LbEsHm1gfgdwhxkJsmyKw3yu SrdauCmxn1rOOaxtkJnCNklO4JDIuTvsIzl/FdLYcvG5OLWPy1sYFc0Fsu+s2zU4 0s9C2SVDg3Fex5ysEPV3ItJLwA9JG/n9mUY6Qy5U49S41G+8PUD/63CmLGHTOiAK mLVtw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheeggdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuf fvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcu oegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtth gvrhhnpeekfefhfffglefgjeehheelhedvgefffeelffdvvedtieffuefhiedvvedtlefh jeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohepphhophgvrhhighgshiesmhgrihhlsghogidrohhrghdprhgtphhtthhopehp ghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Nov 2024 20:47:55 -0500 (EST) Message-ID: Date: Fri, 29 Nov 2024 17:47:55 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Errors when restoring backup created by pg_dumpall To: PopeRigby , pgsql-general@postgresql.org References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> Content-Language: en-US From: Adrian Klaver In-Reply-To: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/29/24 17:34, PopeRigby wrote: > My HDD recently failed so I'm trying to restore my backup, but I'm > running into some errors. > > I've been using a systemd service that periodically backs up my cluster > with pg_dumpall, and I'm using this command to restore: > > sudo psql -f backup.sql postgres > > I'm getting this output: > https://gist.github.com/poperigby/d5a0103b9de1eba95aba783007e557ea psql:all.sql:4104: ERROR: type "earth" does not exist LINE 1: ...ians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth QUERY: SELECT cube(cube(cube(earth()*cos(radians($1))*cos(radians($2))),earth()*cos(radians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth CONTEXT: SQL function "ll_to_earth" during inlining 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 ); Looks like an extension or extensions where not installed before the restore was done. > > This is my (redacted) database dump: > https://gist.github.com/poperigby/fcb59eb6c22c6051800e06a0ec482b49 > > -- Adrian Klaver adrian.klaver@aklaver.com