Re: Errors when restoring backup created by pg_dumpall - Mailing list pgsql-general

From David G. Johnston
Subject Re: Errors when restoring backup created by pg_dumpall
Date
Msg-id CAKFQuwYsUJtQGM09Y3Pb5ycGiCSpX0d_gda6CF88muBJCRcDMw@mail.gmail.com
Whole thread Raw
In response to Re: Errors when restoring backup created by pg_dumpall  (PopeRigby <poperigby@mailbox.org>)
List pgsql-general
On Saturday, November 30, 2024, PopeRigby <poperigby@mailbox.org> wrote:

Ok, so the error is not emanating from your code but rather the body of the ll_to_earth function defined in the earthdistance extension.

David J.

By code do you mean my sql file created by pg_dumpall? Sorry, I'm just a self-hoster so I'm not very well versed in Postgres. I'm just trying to get my server back online.


Yes, your “code” is the user contents of the SQL file.

Your best bet is probably to locate the various “set_config(‘search_path’, ‘’)” commands and add “public” to them.  Since you installed earthdistance to public this should bridge the gap.

David J.
 

pgsql-general by date:

Previous
From: PopeRigby
Date:
Subject: Re: Errors when restoring backup created by pg_dumpall
Next
From: Tom Lane
Date:
Subject: Re: Errors when restoring backup created by pg_dumpall