Re: pg_restore cannot restore function

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: pg_restore cannot restore function
Дата
Msg-id 3D1CBB56.1E86357E@Yahoo.com
обсуждение исходный текст
Ответ на pg_restore cannot restore function  (Jie Liang <jie@stbernard.com>)
Список pgsql-sql
Jie Liang wrote:
> 
> I use
> pg_dump -Fc mydb > dbf
> then I create another db by:
> createdb mydb2
> I use
> pg_restore -P myfunction -d mydb2 dbf
> 
> cannot restore myfunction into mydb2
> 
> why??????

Good question. Is there any error message in the postmaster log?

If the function is written in a procedural language, is that language
enabled in the target database? If the function is written in the SQL
language, do all underlying objects like tables and views exist? If it's
a C language function, does the shared object containing the function
exist at the expected location?


Jan

-- 

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: graphical interface - admin
Следующее
От: "Albrecht Berger"
Дата:
Сообщение: something similar to "on delete cascade" ?