From: Allan Engelhardt <allane@cybaea.com>
To: pgsql-admin@postgresql.org
Subject: [repost] pg_restore doesn't work with custom format?
Date: Fri, 19 Oct 2001 16:02:38 +0100
Message-ID: <3BD0408E.2090908@cybaea.com> (raw)
This looks like a bug, or can somebody explain how I'm supposed to
restore a custom archive dump?
$ createdb foo
CREATE DATABASE
$ psql foo
foo=# create table users (id serial);
NOTICE: CREATE TABLE will create implicit sequence 'users_id_seq' for
SERIAL column 'users.id'
NOTICE: CREATE TABLE/UNIQUE will create implicit index 'users_id_key'
for table 'users'
CREATE
foo=# \q
$ pg_dump --blobs --clean --create --file=/tmp/foo.dump --format=c
--compress=9 foo
$ dropdb foo
DROP DATABASE
$ pg_restore --create -d test /tmp/foo.dump
Archiver(db): Could not execute query. Code = 7. Explanation from
backend: 'ERROR: ProcedureCreate: procedure pltcl_call_handler already
exists with same arguments
'.
$ pg_restore --create --clean -d test /tmp/foo.dump
Archiver(db): Could not execute query. Code = 7. Explanation from
backend: 'ERROR: index "users_id_key" does not exist
'.
What's the magic command that I am looking for??
Allan
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: allane@cybaea.com
Subject: Re: [repost] pg_restore doesn't work with custom format?
In-Reply-To: <3BD0408E.2090908@cybaea.com>
References: <3BD0408E.2090908@cybaea.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