From: Vincent Chen <vctw@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: backup / restore problem
Date: Sun, 31 Mar 2002 22:04:17 -0800 (PST)
Message-ID: <20020401060417.78434.qmail@web20004.mail.yahoo.com> (raw)
Dear all,
I am trying to restore a backup of database created by
pg_dump. But I got the following error, no matter I
use command a or b.
Why pg_restore try to create stuff while data only
option is given?
--- log ---
command (a)
su -l pgsql -c "pg_restore -d db01
/export/data/subsys/backend/archive/db01-current.tar"
command (b)
su -l pgsql -c "pg_restore -a -d db01
/export/data/subsys/backend/archive/db01-current.tar"
NOTICE: CREATE TABLE/PRIMARY KEY will create implicit
index 'acid_event_pkey' for table 'acid_event'
Archiver(db): Could not execute query. Code = 7.
Explanation from backend: 'ERROR: Relation
'acid_event' already exists
--- log ---
Thanks for your help,
Vincent Chen
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.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 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: vctw@yahoo.com
Subject: Re: backup / restore problem
In-Reply-To: <20020401060417.78434.qmail@web20004.mail.yahoo.com>
References: <20020401060417.78434.qmail@web20004.mail.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