Re: Upgrade Problem: 7.4.3 -> 8.1.2

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrade Problem: 7.4.3 -> 8.1.2
Date: 2006-01-19 22:47:33
Message-ID: 877j8vsum2.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:

> Using the 8.1.2 pg_dumpall from the 2004 data directory produces a 819K
> file. But, when I then cd to the new data directory and run:
>
> postgres(at)salmo:/var/lib/pgsql/data$ pg_restore /var/tmp/backup.sql
> pg_restore: [archiver] input file does not appear to be a valid archive
>
> However, the file is readable and looks to have all the databases and tables
> in it. Perhaps I'm closer now?

Yes, as I said before, 'pg_dumpall' only produces SQL format dumps,
which you restore using 'psql'. 'pg_restore' is only for binary
dumps.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Drake 2006-01-19 22:50:39 Re: No heap lookups on index
Previous Message Simon Riggs 2006-01-19 22:47:13 Re: No heap lookups on index