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 1tHYkL-008RrT-MZ for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 01:27: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 1tHYkI-003Oxs-TV for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 01:27:36 +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 1tHYkI-003Oxk-IZ for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 01:27:35 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tHYkC-000Oub-Vh for pgsql-general@postgresql.org; Sun, 01 Dec 2024 01:27:35 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-29685066b8dso1567995fac.1 for ; Sat, 30 Nov 2024 17:27:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733016447; x=1733621247; darn=postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tSJ4k8r3EuR9SbInzpIcgPLSOUhGLqZ4tFA4PLujBok=; b=ewSWMwqRN38GGujLMVQhdk657nPmUqHapcX2j9snl5OdGY+A83RXklorvS90hsC/QK FLeLTKDJX0SAnYFZ93I14YafFtzbbJ2JCtpaq/g3wjD8GcE3MB/lQLYOYKryIzLIwWg3 FuSxAYG7U38EF0bzM1g7v3lyP8ROZHoDghUgfJCiiYv/rW3IuLF5cR5wSmXEW4BR4LC2 NH9x54SsBeHYW0iXxaGREcTAjMXIB2gA++NnrXwkN8NbkDWBTbBN2w74vvBuhx5yzG+r 9hmJdxTK9dJiMd5q17Ll52HD+xYsjbtKK0XrS8qG0CwxVHKDGP/vR3PBWUrDxMsxc+7o AU+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733016447; x=1733621247; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tSJ4k8r3EuR9SbInzpIcgPLSOUhGLqZ4tFA4PLujBok=; b=RpCsHrQPnNKskKBmwqJtt4zJJ0+dFGuzhd2OCIV3JCTEvpohCoKMgFqLFSqiAeZvB7 2yRFbhzz9UbC6uV1NllvPxMhJ6HRei0/ej5M8zUQpeu8bVD+lKsmxnraPBcVO7RE7XVG 3vwRujZzRwzRkGTxR0Qafb2WsRMnKwAutjbzInTTNJm+q8JWvgFGLfkl7MnkzT/tEQYa IilxsUMfyGXEt4aoYZHGYUy8mUlDcBSYJwVGc7072JVEha60761ynUj64WAJprq2qQOK sMFBFzKdQIrK5dydCgy1GTUaWltxgwXyl1RQND4R2RYkMEZmUV1NyA3NST/FcSZ6sp6m /guw== X-Forwarded-Encrypted: i=1; AJvYcCUevdCppbTvIFvsffKJASISRJqnRU650Gl8r3LLIJsPPmScbouhwIfQ2bKRhlUx61ampD1AJGU4EoWIUyk9@postgresql.org X-Gm-Message-State: AOJu0YwiTS6ICSH5+asz+dQVHasbXBsiOjomVQDzPXH72IACh8ranjTP JMHcV6TC4ZPsskNtZyCwRpXfmrloSpckUIt9VKNNdjHcixU1E6NZsTtfrFl7pZNB0sI1BQHtPMy VKLKH6PeODijz5FW4jjhqJ4KdB8A= X-Gm-Gg: ASbGncvVUm9/LbKrVC0SvkUpiBAAxzLA53nE6B430mhxfkXSKWHc8Idl0ToXCBgTA4B 0e/akR2XyS/MFBmS91Kl0DCLCejaJmss= X-Google-Smtp-Source: AGHT+IENLcs5vCOgwCkyhjLFpLoidutQTnFBx8FYSotHin9T2Re5zE/yCK0q0DZi7KKbNqCQTmpdlKGxFHm6xHcJScw= X-Received: by 2002:a05:6870:6111:b0:288:accd:fa48 with SMTP id 586e51a60fabf-29dc3f9bfdfmr10612176fac.4.1733016447397; Sat, 30 Nov 2024 17:27:27 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a8a:516:0:b0:56c:c9af:3ee6 with HTTP; Sat, 30 Nov 2024 17:27:26 -0800 (PST) In-Reply-To: <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> From: "David G. Johnston" Date: Sat, 30 Nov 2024 18:27:26 -0700 Message-ID: Subject: Re: Errors when restoring backup created by pg_dumpall To: PopeRigby Cc: Adrian Klaver , "pgsql-general@postgresql.org" Content-Type: multipart/alternative; boundary="000000000000bcb71106282b5527" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bcb71106282b5527 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, November 30, 2024, PopeRigby wrote: > On 11/29/24 17:47, Adrian Klaver wrote: > >> On 11/29/24 17:34, PopeRigby wrote: >> >> 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(radia >> ns($1)))::earth >> CONTEXT: SQL function "ll_to_earth" during inlining >> The earthdistance module is even getting added between the table with >> the earth type is added, so shouldn't there be no problem? >> > The fact that =E2=80=9Cearth=E2=80=9D is not schema qualified leads me to s= uspect you are getting bit by safe search_path environment rules. David J. --000000000000bcb71106282b5527 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, November 30, 2024, PopeRigby <poperigby@mailbox.org> wrote:
On 11/29/24 17:47, Adrian Klaver wrote:
On 11/29/24 17:34, PopeRigby wrote:

psql:all.sql:4104: ERROR:=C2=A0 type "earth" does not exist
LINE 1: ...ians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth

QUERY:=C2=A0 SELECT cube(cube(cube(earth()*cos(radians($1))*cos(radian= s($2))),earth()*cos(radians($1))*sin(radians($2))),earth()*sin(ra= dians($1)))::earth
CONTEXT:=C2=A0 SQL function "ll_to_earth" during inlining
=C2= =A0The earthdistance module is even getting added between the table with th= e earth type is added, so shouldn't there be no problem?

The fact that =E2=80=9Cearth=E2=80=9D is= not schema qualified leads me to suspect you are getting bit by safe searc= h_path environment rules.

David J.=C2=A0
--000000000000bcb71106282b5527--