Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id E625D475C38; Mon, 15 Jul 2002 19:24:41 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g6FNOcD19895; Mon, 15 Jul 2002 19:24:38 -0400 (EDT) From: Bruce Momjian Message-Id: <200207152324.g6FNOcD19895@candle.pha.pa.us> Subject: Re: pg_restore cannot restore index In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2126@MAIL01.stbernard.com> To: Jie Liang Date: Mon, 15 Jul 2002 19:24:38 -0400 (EDT) Cc: "'Jan Wieck'" , "'admin@postgresql.org'" , "'pgsql-sql@postgresql.org'" X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200207/227 X-Sequence-Number: 8605 Jie Liang wrote: > su postgres -c "/usr/local/pgsql/bin/pg_restore --table=mytable > --dbname=mydb mydumpfile" > error msg > pg_restore: [archiver] could not open input file: No such file or directory > > I run it on 7.2.0 OK, my guess is that the 'su' is moving you to another directory. Try specifying the full path of the file, e.g. /var/tmp/mydumpfile. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026