From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jie Liang <jie(at)stbernard(dot)com> |
Cc: | "'Jan Wieck'" <JanWieck(at)Yahoo(dot)com>, "'admin(at)postgresql(dot)org'" <admin(at)postgresql(dot)org>, "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: pg_restore cannot restore index |
Date: | 2002-07-15 23:24:38 |
Message-ID: | 200207152324.g6FNOcD19895@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2002-07-15 23:24:45 | how pg_restore long form works? |
Previous Message | Jie Liang | 2002-07-15 23:22:54 | Re: pg_restore cannot restore index |