Re: pg_dump / pg_upgrade problem

From: Simone Tellini <tellini(at)areabusiness(dot)it>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump / pg_upgrade problem
Date: 2002-02-10 17:59:53
Message-ID: 20020210185708.6F92.TELLINI@areabusiness.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Sun, 10 Feb 2002 10:49:29 -0700
Naomi Walker <nwalker(at)eldocomp(dot)com> wrote:

NW> My guess is that this will not be hard to fix. What did you have to
NW> change, exactly, to make it work? I've got a mixed case dbname.

for database names you just need to find the '\connect dbname user' line
and turn it into '\connect "dbname" user'

For usernames it isn't so simple, as it'll fail later on (when assigning
table owners and stuff, I guess).

The simplest way to restore a db with mixed case usernames is to
change the CREATE USER commands at the top of the dump to lowercase,
restore it and then rename the users (if it's possible).

--

Simone Tellini
E-mail: tellini(at)areabusiness(dot)it
http://www.areabusiness.it

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2002-02-10 18:39:08 Re: pg_dump / pg_upgrade problem
Previous Message Naomi Walker 2002-02-10 17:49:29 Re: pg_dump / pg_upgrade problem