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 1tHZtv-008Ywp-Qa for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 02:41:35 +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 1tHZts-003s6E-8M for pgsql-general@arkaria.postgresql.org; Sun, 01 Dec 2024 02:41:33 +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 1tHZtr-003s66-Qe for pgsql-general@lists.postgresql.org; Sun, 01 Dec 2024 02:41:33 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tHZtp-000PVx-Q1 for pgsql-general@postgresql.org; Sun, 01 Dec 2024 02:41:32 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-29e5746a501so90951fac.3 for ; Sat, 30 Nov 2024 18:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733020888; x=1733625688; 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=sjdl1axKGpVIJRZ1LJ+IXCL8iZEsrX7ltz4Hjixr79E=; b=TbbcKEufAKeutbzDPL3BErgjS/9+oeYxYrz+f+JDYnnxvt7IGVEnU17ftrtSHdgdke b70g3qoZs/s6zSC49uIodYmJck9MvqCg76LPHoej46dmLEvnttT0OvU02cr5csa9kImu PwA8sZyWpFlEun8XnJMIvwRhZ8P/tcEQBZ5DJli2kby4PQ2xZYrOWdhjWnXE7/7UAyr9 B+nDucSsIlD3NZS8ftEin+L2JMHVyAhcjxCI/bDW3JM2e6zVUhznXouvH/HssMtwkkFh XtzG6fvYu+q6ToxHaGMb1dBhF15hlfLVkbdWJvSi14HDpl7BPQjrWfdaqWZijx3H3Fmg NHGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733020888; x=1733625688; 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=sjdl1axKGpVIJRZ1LJ+IXCL8iZEsrX7ltz4Hjixr79E=; b=ovjIJUiPC+WPiNNXcqDTFzXO8YCSy4vW3KoryafgVYEmBfHCCVMInKEAh6d3TRX9v0 Y4VJFUpJZ8PH/KgJtsGSQDXjf8JIPopIRgueze50eFK0S+Gb9Sq/1kGSG2bREEPVmLTy MuG8X9Qo8hsui6TozwhZLFllEuzhldZ91Up5I4n5toJdBnU0tdTHLj1/67OWzeFernJU mh5tmbG5XFx3xsIpmHXemhTKvnuNQzTESvCP2HqS1sokS+z/uuuckfGr+3W39bYInFNB 7PP5v9tGZbkJwkWA/VmX8tbghNtR4ZCyp5jCOaCKyLRgJDzBPYOtpn0rdgExzBpmKvDK fjvw== X-Forwarded-Encrypted: i=1; AJvYcCVCmiMlI4ouIy2fs+n2dOK/gijDH0cs0TAiqUsydyxc2Vd1klLgfrdFzsedBJBt84z/BmAwFGQWtGgt+/Qc@postgresql.org X-Gm-Message-State: AOJu0Yz4FAhnCQF9230nkMlWtqKtLXgtw8xV+NqI6FKewoQW/jxZHhHA 2qbElvTdXRuZHURLQJ64uMMM3+DTy5pHGGBreR57NdAlqHM/H3HWdxTzikoUgb/f+yqELcFmAO0 yMT5CA7Ho8I2+IxqwiRq2rw40rJM= X-Gm-Gg: ASbGncvIK7tVuPSlbN+eu0gF2XFLrllBroLh/r3N4kFg9Sa+yr4sRddQKkN/Gi+AB+Q 36O1AEtmkQz1H93G10t0kt2cNId/ov4g= X-Google-Smtp-Source: AGHT+IEm8Mk/+LmzwnPwNv1HhiwLKNqbXHi7nPxnV+JAsRCx7o4UE+6bnv4qgYZlOvwlUhKs2ykcIpTdtZssOiOgzho= X-Received: by 2002:a05:6870:168b:b0:295:eebe:ea1 with SMTP id 586e51a60fabf-29dc3f9ef5amr13428009fac.9.1733020888082; Sat, 30 Nov 2024 18:41:28 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a8a:516:0:b0:56c:c9af:3ee6 with HTTP; Sat, 30 Nov 2024 18:41:27 -0800 (PST) In-Reply-To: References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> From: "David G. Johnston" Date: Sat, 30 Nov 2024 19:41:27 -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="0000000000006c30fe06282c5efc" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006c30fe06282c5efc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, November 30, 2024, PopeRigby wrote: > On 11/30/24 17:27, David G. Johnston wrote: > > 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(rad >>> ians($1))*cos(radians($2))),earth()*cos(radians($1))*sin(rad >>> ians($2))),earth()*sin(radians($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= suspect you are > getting bit by safe search_path environment rules. > > David J. > > Ah. How can I fix that? > Since you are past the point of fixing the source to produce valid dumps=E2=80=A6that leaves finding the places in the text the lack the schem= a qualification and manually adding them in. David J. --0000000000006c30fe06282c5efc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, November 30, 2024, PopeRigby <poperigby@mailbox.org> wrote:
=20 =20 =20
On 11/30/24 17:27, David G. Johnston wrote:
=20 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 e= xist
LINE 1: ...ians($1))*sin(radians($2))),earth()*sin(radians($= 1)))::earth

QUERY:=C2=A0 SELECT cube(cube(cube(earth()*cos(radians($1))*= cos(radians($2))),earth()*cos(radians($1))*sin(radians($2))),eart= h()*sin(radians($1)))::earth
CONTEXT:=C2=A0 SQL function "ll_to_earth" during inlini= ng
=C2=A0The 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 le= ads me to suspect you are getting bit by safe search_path environment rules.

David J.=C2=A0

Ah. How can I fix that?

Since you are past the point of fixing the = source to produce valid dumps=E2=80=A6that leaves finding the places in the= text the lack the schema qualification and manually adding them in.
<= div>
David J.

--0000000000006c30fe06282c5efc--