Re: pg_restore cannot restore index - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: pg_restore cannot restore index
Date
Msg-id 200207152324.g6FNOcD19895@candle.pha.pa.us
Whole thread Raw
In response to Re: pg_restore cannot restore index  (Jie Liang <jie@stbernard.com>)
List pgsql-sql
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,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: Re: pg_restore cannot restore index
Next
From: Jie Liang
Date:
Subject: how pg_restore long form works?