From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rosser Schwarz <rosser.schwarz@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: A real puzzler: ANY way to recover?
Date: Thu, 05 May 2005 14:14:44 -0400
Message-ID: <25490.1115316884@sss.pgh.pa.us> (raw)
In-Reply-To: <37d451f705050510373e9a34ab@mail.gmail.com>
References: <427A5472.8060004@roaringpenguin.com>
<37d451f705050510373e9a34ab@mail.gmail.com>
Rosser Schwarz <rosser.schwarz@gmail.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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, rosser.schwarz@gmail.com
Subject: Re: A real puzzler: ANY way to recover?
In-Reply-To: <25490.1115316884@sss.pgh.pa.us>
* 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