Re: Error while running restore

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error while running restore
Дата
Msg-id 916106.1611254489@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Error while running restore  (Márcio Antônio Sepp <marcio@zyontecnologia.com.br>)
Ответы RES: Error while running restore  (Márcio Antônio Sepp <marcio@zyontecnologia.com.br>)
Список pgsql-general
=?iso-8859-1?Q?M=E1rcio_Ant=F4nio_Sepp?= <marcio@zyontecnologia.com.br> writes:
> I’m getting this error message when try to restore a database :
> ERROR:  function f_validanumero_cnpj_cpf(character) does not exist
> LINE 1: SELECT (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=false)
>                 ^
> HINT:  No function matches the given name and argument types. You might need
> to add explicit type casts.
> QUERY:  SELECT (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=false)
> CONTEXT:  função PL/pgSQL public.f_testacnpjcpf(character) linha 31 em IF

It looks like f_testacnpjcpf() is making unwarranted assumptions about what
search_path it's invoked under.  You could try schema-qualifying the
reference to f_validanumero_cnpj_cpf, or adding an explicit "SET
search_path" clause to f_testacnpjcpf().

            regards, tom lane



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

Предыдущее
От: Márcio Antônio Sepp
Дата:
Сообщение: RES: Error while running restore
Следующее
От: Ken Tanzer
Дата:
Сообщение: Re: Copy & Re-copy of DB