From: Curtis Mortensen <shakiro2@yahoo.com>
To: pgsql-novice@postgresql.org
Subject: Re: pg_restore error
Date: Mon, 9 Sep 2002 15:54:44 -0600
Message-ID: <CPECIDGAKENJOOCGOHGJAEOGCBAA.shakiro2@yahoo.com> (raw)
In-Reply-To: <3D7982F4.3010009@inter-net-solutions.com>
I finally got a chance to try out your suggestions, but it seems that
something I'm doing is still wrong.
When I try the first method described below, I get this error:
You are now connected as new user postgres.
ERROR: function plpgsql_call_handler already exists with same argument
types
ERROR: Language plpgsql already exists
\connect: FATAL 1: IDENT authentication failed for user "cmortensen"
When I try the other method, I get this error:
pg_restore: [archiver (db)] could not execute query: ERROR: function
plpgsql_call_handler already exists with same argument types
I get the impression that the problem is deeper than just trying to backup,
but being a very green novice to Postgres, I'm not sure where to start
tracking the problem to its source...
Thanks for all your help so far :)
-------- Original Message --------
Hi Curtis,
> thanks for the advice. i now have a different error. :(
I suspected you would, but without knowing the commands you were using
decided guessing would only be confusing! Only the archive formats
from pg_dump are intended to be used with pg_restore. The default
output can be restored by psql:
$ pg_dump fubar > fubar.sql
$ createdb fubar2
CREATE DATABASE
$ psql fubar2 < fubar.sql
You are now connected as new user giles.
CREATE
$
$ pg_dump --format=c fubar > fubar.dump
$ createdb fubar2
CREATE DATABASE
$ pg_restore --dbname=fubar2 < fubar.dump
pg_restore: [archiver] WARNING:
Data restoration may fail because existing triggers cannot be disabled
(no superuser user name specified). This is only a problem when
restoring into a database with already existing triggers.
$
Regards,
Giles
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-novice@postgresql.org
Cc: shakiro2@yahoo.com
Subject: Re: pg_restore error
In-Reply-To: <CPECIDGAKENJOOCGOHGJAEOGCBAA.shakiro2@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