Re: Upgrade Problem: 7.4.3 -> 8.1.2 - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Upgrade Problem: 7.4.3 -> 8.1.2
Date
Msg-id 43D01C2A.60103@commandprompt.com
Whole thread Raw
In response to Re: Upgrade Problem: 7.4.3 -> 8.1.2  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Upgrade Problem: 7.4.3 -> 8.1.2
Re: Upgrade Problem: 7.4.3 -> 8.1.2
List pgsql-general
Rich Shepard wrote:
> On Thu, 19 Jan 2006, Doug McNaught wrote:
>
>> 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,
>
>   I read the backup/restore web page to which you pointed me. I think that
> the new database is not initiated. When I follow the instructions and
> enter:
>
> psql -f /var/tmp/backup.sql
>
> I see:
>
> psql: FATAL:  database "postgres" does not exist

What happens when you psql -U postgres template1 ?

>
> This is the same message I read when I append 'postgres' to the command.
> Back
> to the manual.
>
> Thanks,
>
> Rich
>


--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: A tale of two similar databases
Next
From: Rich Shepard
Date:
Subject: Re: Upgrade Problem: 7.4.3 -> 8.1.2