From: Jan Wieck <JanWieck@Yahoo.com>
To: Jie Liang <jie@stbernard.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: 'admin@postgresql.org' <admin@postgresql.org>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: pg_restore cannot restore function
Date: Fri, 28 Jun 2002 15:39:02 -0400
Message-ID: <3D1CBB56.1E86357E@Yahoo.com> (raw)
References: <7C760DAA511DC74B99E7D22189F786F101BF2104@MAIL01.stbernard.com>
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 #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: JanWieck@Yahoo.com, jie@stbernard.com, pgman@candle.pha.pa.us, admin@postgresql.org
Subject: Re: pg_restore cannot restore function
In-Reply-To: <3D1CBB56.1E86357E@Yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox