X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 6781E310127 for ; Fri, 27 Jun 2003 03:33:41 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 70474-07 for ; Fri, 27 Jun 2003 00:33:31 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D8A3431004D for ; Fri, 27 Jun 2003 00:33:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5R3XRQQ024475; Thu, 26 Jun 2003 23:33:27 -0400 (EDT) To: "Barna, Gary" Cc: pgsql-admin@postgresql.org Subject: Re: pg_restore --data-only (-a) does not work In-reply-to: References: Comments: In-reply-to "Barna, Gary" message dated "Tue, 24 Jun 2003 09:37:35 -0400" Date: Thu, 26 Jun 2003 23:33:27 -0400 Message-ID: <24474.1056684807@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/316 X-Sequence-Number: 9307 "Barna, Gary" writes: > bash-2.03$ pg_restore -c -a -d [dbname] ../data/backups/[-Fc Archive] > pg_restore: [archiver (db)] error returned by PQputline Lessee ... you drop all the tables (-c) and then try to restore data without recreating them (-a) ... not too surprising it doesn't work. I agree the error message sucks though. FWIW, CVS tip seems to be bright enough to ignore -c when used in combination with -a; also it gives a more useful message when there is a failure during a COPY command. regards, tom lane