X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1AA6753DC4 for ; Thu, 5 May 2005 15:14:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15810-02 for ; Thu, 5 May 2005 18:14:47 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B4F7A53DB7 for ; Thu, 5 May 2005 15:14:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j45IEiOR025491; Thu, 5 May 2005 14:14:44 -0400 (EDT) To: Rosser Schwarz Cc: pgsql-admin@postgresql.org Subject: Re: A real puzzler: ANY way to recover? In-reply-to: <37d451f705050510373e9a34ab@mail.gmail.com> References: <427A5472.8060004@roaringpenguin.com> <37d451f705050510373e9a34ab@mail.gmail.com> Comments: In-reply-to Rosser Schwarz message dated "Thu, 05 May 2005 12:37:42 -0500" Date: Thu, 05 May 2005 14:14:44 -0400 Message-ID: <25490.1115316884@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/54 X-Sequence-Number: 17483 Rosser Schwarz 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