pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simone Tellini <tellini@areabusiness.it>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dump / pg_upgrade problem
Date: Sun, 10 Feb 2002 18:59:53 +0100
Message-ID: <20020210185708.6F92.TELLINI@areabusiness.it> (raw)
In-Reply-To: <4.2.0.58.20020210104828.0096fa10@logic1design.com>
References: <20020209233145.DAF4.TELLINI@areabusiness.it>
	<4.2.0.58.20020210104828.0096fa10@logic1design.com>


On Sun, 10 Feb 2002 10:49:29 -0700
Naomi Walker <nwalker@eldocomp.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@areabusiness.it
http://www.areabusiness.it




view thread (8+ messages)  latest in thread

Message-ID: <20020210185708.6F92.TELLINI@areabusiness.it>
Permalink:  ../20020210185708.6F92.TELLINI@areabusiness.it/
Also on:    postgresql.org/message-id/20020210185708.6F92.TELLINI@areabusiness.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tellini@areabusiness.it
  Subject: Re: pg_dump / pg_upgrade problem
  In-Reply-To: <20020210185708.6F92.TELLINI@areabusiness.it>
  References: <20020209233145.DAF4.TELLINI@areabusiness.it> <4.2.0.58.20020210104828.0096fa10@logic1design.com> <20020210185708.6F92.TELLINI@areabusiness.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox