Re: pg_restore
| От | Tom Lane |
|---|---|
| Тема | Re: pg_restore |
| Дата | |
| Msg-id | 8885.1193609937@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pg_restore (Bob Pawley <rjpawley@shaw.ca>) |
| Ответы |
Re: pg_restore
Re: pg_restore |
| Список | pgsql-general |
Bob Pawley <rjpawley@shaw.ca> writes:
> The latest in the saga -
> By using - pg_restore -h localhost -d PDW -U postgres aurel.sql
> I get the message - pg_restore: input file does not appear to be a valid
> archive.
Oh, I just twigged that you are using a plain-SQL dump file (that is,
you didn't specify -Fc or -Ft to pg_dump). For plain-SQL dumps you
should not use pg_restore at all; you feed those to psql.
This bites enough newbies that I'm thinking the above message ought to
inclue a HINT to use psql directly. We haven't previously used hints
in client-side messages but this seems to need one. Anyone have
thoughts about how to phrase and format it?
(BTW, I just fixed pg_restore to always mention the file name it
attempted to open after getting an fopen failure.)
regards, tom lane
В списке pgsql-general по дате отправления: