Re: BUG #15530: unable restore index on function from earthdistance contrib

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15530: unable restore index on function from earthdistance contrib
Дата
Msg-id 17735.1543849914@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #15530: unable restore index on function from earthdistance contrib  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: BUG #15530: unable restore index on function from earthdistance contrib
Следующее
От: "小威"
Дата:
Сообщение: Re: BUG #15528: on v11.0 version still get error "ERROR: catalog is missing 1 attribute(s) for relid 6855092"