Re: [HACKERS] Reloading a 6.3db into 6.4.1t - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Reloading a 6.3db into 6.4.1t
Date
Msg-id 199901040444.XAA02796@candle.pha.pa.us
Whole thread Raw
In response to Reloading a 6.3db into 6.4.1  ("Stan Brown" <stanb@awod.com>)
List pgsql-hackers
>     I am having problems reloading my 6.3 dump inot 6.4.1 Heres what I am
>     seeing:
> 
> \connect template1 postgres
> connecting to new database: template1 as user: postgres
> create database stan;
> QUERY: create database stan;
> CREATEDB
> \connect stan postgres
> connecting to new database: stan as user: postgres
> \connect - stan
> connecting as new user: stan
> FATAL 1:  SetUserId: user 'stan' is not in 'pg_shadow'
> 
> Could not connect to new database. exiting
> 
>     What am I doing wrong here?

Did you use pg_dump preseving the users, but did not user pg_dumpall,
which creates the users.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: "Stan Brown"
Date:
Subject: Reloading a 6.3db into 6.4.1
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Error creating index