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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-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

Browse pgsql-admin by date

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Samngan 2005-05-05 18:16:46 Re: REMOVE
Previous Message Dann Corbit 2005-05-05 18:08:05 Re: Views, views, views! (long)