Received: from web20004.mail.yahoo.com (web20004.mail.yahoo.com [216.136.225.49]) by postgresql.org (Postfix) with SMTP id B3E094750F5 for ; Mon, 1 Apr 2002 01:04:17 -0500 (EST) Message-ID: <20020401060417.78434.qmail@web20004.mail.yahoo.com> Received: from [61.223.0.30] by web20004.mail.yahoo.com via HTTP; Sun, 31 Mar 2002 22:04:17 PST Date: Sun, 31 Mar 2002 22:04:17 -0800 (PST) From: Vincent Chen Subject: backup / restore problem To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200204/19 X-Sequence-Number: 3908 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/