Re: BUG #10500: Cannot restore from a dump when some function is used in public shcema

Поиск
Список
Период
Сортировка
От Nicolas Ross
Тема Re: BUG #10500: Cannot restore from a dump when some function is used in public shcema
Дата
Msg-id 538CB2CF.8020200@cybercat.ca
обсуждение исходный текст
Ответ на Re: BUG #10500: Cannot restore from a dump when some function is used in public shcema  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-bugs
Andres Freund a écrit :
> Hi,
>
> On 2014-06-02 16:14:27 +0000, nicolas@cybercat.ca wrote:
>> The pg_restore or psql won't create the index in the last sql, despite the
>> fact that the public schema is specified to reference the function.
> What exactly do you mean with "won't create"? Does it generate an error?
> If so, what's that exactly?

Yes, sorry, here it is :

ERROR:  function unaccent(text) does not exist
LIGNE 1 :  SELECT unaccent(lower($1));
                   ^
ASTUCE : No function matches the given name and argument types. You
might need to add explicit type casts.
REQUÊTE :  SELECT unaccent(lower($1));
CONTEXTE : SQL function "cyunaccent" during inlining

********** Error **********

ERROR: function unaccent(text) does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might
need to add explicit type casts.
Context: SQL function "cyunaccent" during inlining

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #10432: failed to re-find parent key in index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #10500: Cannot restore from a dump when some function is used in public shcema