Re: pg_restore valid archive

From: eel(at)javabox(dot)com (Eel)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_restore valid archive
Date: 2002-02-16 15:06:09
Message-ID: a62a408.0202160706.1cc3c07@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

So I used:

psql mydb < pgmydb

and it worked like a charm.

What's the deal with pg_restore? Is it just noise? The
docs show it working. Not a big deal, but I can't get it
to work.

Thanks.

eel(at)javabox(dot)com (Eel) wrote in message news:<a62a408(dot)0202151814(dot)15a4dcc(at)posting(dot)google(dot)com>...
> Hi,
> I'm trying to upgrade to 7.2 from 7.0. I first tried pg_dump from
> 7.0 and then pg_restore. It gave me "input file does not appear to be
> a valid archive". I did a bit of research and found that versions of
> pg_dump/restore are incompatible, so I pg_dumped it from the 7.2
> pg_dump. It still gives me the same error. What do I need for a
> valid archive? I'm doing something like:
>
> pg_dump -h oldmachine mydb > pgmydb
>
> None of the following work.
> pg_restore pgmydb
> pg_restore -d mydb pgmydb
> pg_restore -d mydb -f pgmydb
>
> Is there any trick to doing this? I can't even dump/restore a simple
> database on the new machine.
>
> Thanks!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alejandro Rivadeneira 2002-02-16 16:25:08 PostgreSQL Spanish manuals , files & links
Previous Message Oliver Elphick 2002-02-16 09:19:15 Re: PostgreSQL 7.2 Debian Package