Skip site navigation (1) Skip section navigation (2)

Re: A real puzzler: ANY way to recover?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: A real puzzler: ANY way to recover?
Date: 2005-05-05 18:14:44
Message-ID: 25490.1115316884@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-hackers
Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com> writes:
> but a priori, I'd suggest trying, as your postgres user:

> $ createdb oopswow

Doesn't work because createdb has to connect to something (typically
template1).  If he's closed off *all* his databases, he's in deep
doo-doo.

This is reminiscent of the problem pointed out some time ago "what
do you do if you deleted all your superusers"?  We fixed that by
allowing a standalone backend to connect (and to believe itself to
be a superuser) no matter what is in ... or not in ... pg_shadow.
I'm inclined to think the same answer should hold for this one.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: SamnganDate: 2005-05-05 18:16:46
Subject: Re: REMOVE
Previous:From: Dann CorbitDate: 2005-05-05 18:08:05
Subject: Re: Views, views, views! (long)

pgsql-admin by date

Next:From: SamnganDate: 2005-05-05 18:16:46
Subject: Re: REMOVE
Previous:From: David F. SkollDate: 2005-05-05 18:06:33
Subject: Re: A real puzzler: ANY way to recover?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group