Re: BUG #15530: unable restore index on function from earthdistance contrib - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15530: unable restore index on function from earthdistance contrib
Date
Msg-id 17735.1543849914@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #15530: unable restore index on function from earthdistance contrib  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-bugs
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Sergei" == Sergei Kornilov <sk@zsrv.org> writes:
>  Sergei> I think we can fix this issue by marking SQL language functions
>  Sergei> "set search_path from current".

> Unfortunately using SET on sql-language functions prevents inlining.

Yeah.  Another problem is that SET FROM CURRENT will freeze the
search_path at the current setting, which means it'll likely
fail again if either extension in question gets relocated.

Even if this were a perfect solution, it only fixes things for
earthdistance, whereas the same problem exists for any extension
containing SQL or PL functions.  So I wish we had a more general
answer ... not that I know what that should look like.

            regards, tom lane


pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: BUG #15530: unable restore index on function from earthdistance contrib
Next
From: "小威"
Date:
Subject: Re: BUG #15528: on v11.0 version still get error "ERROR: catalog is missing 1 attribute(s) for relid 6855092"