pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump / pg_upgrade problem
8+ messages / 3 participants
[nested] [flat]
* pg_dump / pg_upgrade problem
@ 2002-02-09 21:56 Simone Tellini <tellini@areabusiness.it>
0 siblings, 1 reply; 8+ messages in thread
From: Simone Tellini @ 2002-02-09 21:56 UTC (permalink / raw)
To: pgsql-admin
Hi,
if you have a database whose name has capital letters (eg. TestMe), you
won't be able to restore it from a dump nor use pg_upgrade as the dump
will try to /connect TestMe, which will give the error "database testme
doesn't exists"
--
Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-09 22:23 Simone Tellini <tellini@areabusiness.it>
parent: Simone Tellini <tellini@areabusiness.it>
0 siblings, 2 replies; 8+ messages in thread
From: Simone Tellini @ 2002-02-09 22:23 UTC (permalink / raw)
To: pgsql-admin
On Sat, 09 Feb 2002 22:56:16 +0100
Simone Tellini <tellini@areabusiness.it> wrote:
ST> won't be able to restore it from a dump nor use pg_upgrade as the dump
ST> will try to /connect TestMe, which will give the error "database testme
ST> doesn't exists"
I've forgot: the same applies to mixed case usernames.
--
Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-09 22:33 Simone Tellini <tellini@areabusiness.it>
parent: Simone Tellini <tellini@areabusiness.it>
1 sibling, 0 replies; 8+ messages in thread
From: Simone Tellini @ 2002-02-09 22:33 UTC (permalink / raw)
To: pgsql-admin
On Sat, 09 Feb 2002 23:23:20 +0100
Simone Tellini <tellini@areabusiness.it> wrote:
ST> ST> will try to /connect TestMe, which will give the error "database testme
ST> ST> doesn't exists"
ST> I've forgot: the same applies to mixed case usernames.
...ok, mixed case username will make it a PITA to restore the db, as the
problem isn't only in the connect line (which I've just tried to fix
manually with quotes) <sigh>
--
Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-10 17:49 Naomi Walker <nwalker@eldocomp.com>
parent: Simone Tellini <tellini@areabusiness.it>
1 sibling, 1 reply; 8+ messages in thread
From: Naomi Walker @ 2002-02-10 17:49 UTC (permalink / raw)
To: Simone Tellini <tellini@areabusiness.it>; pgsql-admin
My guess is that this will not be hard to fix. What did you have to
change, exactly, to make it work? I've got a mixed case dbname.
At 11:33 PM 2/9/02 +0100, Simone Tellini wrote:
>On Sat, 09 Feb 2002 23:23:20 +0100
>Simone Tellini <tellini@areabusiness.it> wrote:
>
>ST> ST> will try to /connect TestMe, which will give the error "database
>testme
>ST> ST> doesn't exists"
>ST> I've forgot: the same applies to mixed case usernames.
>
>...ok, mixed case username will make it a PITA to restore the db, as the
>problem isn't only in the connect line (which I've just tried to fix
>manually with quotes) <sigh>
>
>--
>
>Simone Tellini
>E-mail: tellini@areabusiness.it
>http://www.areabusiness.it
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-10 17:59 Simone Tellini <tellini@areabusiness.it>
parent: Naomi Walker <nwalker@eldocomp.com>
0 siblings, 1 reply; 8+ messages in thread
From: Simone Tellini @ 2002-02-10 17:59 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-10 18:39 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Simone Tellini <tellini@areabusiness.it>
0 siblings, 1 reply; 8+ messages in thread
From: Stephan Szabo @ 2002-02-10 18:39 UTC (permalink / raw)
To: Simone Tellini <tellini@areabusiness.it>; +Cc: pgsql-admin
On Sun, 10 Feb 2002, Simone Tellini wrote:
>
> 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).
Do you know what lines it's failing on in the dump specifically (for
purposes of fixing it)?
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-10 19:31 Simone Tellini <tellini@areabusiness.it>
parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 1 reply; 8+ messages in thread
From: Simone Tellini @ 2002-02-10 19:31 UTC (permalink / raw)
To: pgsql-admin
On Sun, 10 Feb 2002 10:39:08 -0800 (PST)
Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:
SS> Do you know what lines it's failing on in the dump specifically (for
SS> purposes of fixing it)?
I think everywhere it uses the username. From the dump:
\connect WizNet WizNet (both are wrong)
--
-- Selected TOC Entries:
--
\connect - WizNet (hm... I think I missed this when quoting
manually, perhaps it would have been
enough then)
[...]
-- Name: users Type: TABLE Owner: WizNet
(is this a comment or is it used for something?)
--
Simone Tellini
E-mail: tellini@areabusiness.it
http://www.areabusiness.it
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pg_dump / pg_upgrade problem
@ 2002-02-10 20:17 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Simone Tellini <tellini@areabusiness.it>
0 siblings, 0 replies; 8+ messages in thread
From: Stephan Szabo @ 2002-02-10 20:17 UTC (permalink / raw)
To: Simone Tellini <tellini@areabusiness.it>; +Cc: pgsql-admin
On Sun, 10 Feb 2002, Simone Tellini wrote:
>
> On Sun, 10 Feb 2002 10:39:08 -0800 (PST)
> Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:
>
> SS> Do you know what lines it's failing on in the dump specifically (for
> SS> purposes of fixing it)?
>
> I think everywhere it uses the username. From the dump:
>
> \connect WizNet WizNet (both are wrong)
> --
> -- Selected TOC Entries:
> --
> \connect - WizNet (hm... I think I missed this when quoting
> manually, perhaps it would have been
> enough then)
Probably would be sufficient to do that, yes.
> [...]
> -- Name: users Type: TABLE Owner: WizNet
> (is this a comment or is it used for something?)
AFAIK, just a comment.
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2002-02-10 20:17 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-09 21:56 pg_dump / pg_upgrade problem Simone Tellini <tellini@areabusiness.it>
2002-02-09 22:23 ` Simone Tellini <tellini@areabusiness.it>
2002-02-09 22:33 ` Simone Tellini <tellini@areabusiness.it>
2002-02-10 17:49 ` Naomi Walker <nwalker@eldocomp.com>
2002-02-10 17:59 ` Simone Tellini <tellini@areabusiness.it>
2002-02-10 18:39 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-02-10 19:31 ` Simone Tellini <tellini@areabusiness.it>
2002-02-10 20:17 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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