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 4249E53F94; Thu, 5 May 2005 15:19:18 -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 15791-10; Thu, 5 May 2005 18:19:15 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8886D53DCA; Thu, 5 May 2005 15:19:14 -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 j45IJFiR025543; Thu, 5 May 2005 14:19:15 -0400 (EDT) To: "David F. Skoll" Cc: pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: A real puzzler: ANY way to recover? In-reply-to: <427A5472.8060004@roaringpenguin.com> References: <427A5472.8060004@roaringpenguin.com> Comments: In-reply-to "David F. Skoll" message dated "Thu, 05 May 2005 13:14:26 -0400" Date: Thu, 05 May 2005 14:19:15 -0400 Message-ID: <25542.1115317155@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/56 X-Sequence-Number: 17485 "David F. Skoll" writes: > Supposing someone stupidly did this: > UPDATE pg_database SET datallowconn = false; > and then closed all the connections to the server. > Is there any way to recover short of nuking everything and > restoring from a backup dump? :-( BTW, am I right in guessing that you got into this fix by sloppy application of the directions for fixing template0 for the recent security issues? Although I dislike last-minute fixes, I am strongly tempted to put in the ignore-datallowconn-if-standalone change in all the releases we are about to make. It'd be a one-liner that is very unlikely to break anything, and I have this nasty feeling that you may not be the only guys to make this mistake. regards, tom lane