X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 98A779FA48C; Thu, 18 May 2006 17:28:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 76065-10; Thu, 18 May 2006 17:27:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 986579F9C18; Thu, 18 May 2006 17:27:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4IKRsCd020571; Thu, 18 May 2006 16:27:54 -0400 (EDT) To: "Marc G. Fournier" cc: pgsql-admin@postgresql.org Subject: Re: lock a database from new connections, without modifying pg_hba.conf In-reply-to: <20060518141816.Q1145@ganymede.hub.org> References: <20060518141816.Q1145@ganymede.hub.org> Comments: In-reply-to "Marc G. Fournier" message dated "Thu, 18 May 2006 14:22:50 -0300" Date: Thu, 18 May 2006 16:27:54 -0400 Message-ID: <20570.1147984074@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/269 X-Sequence-Number: 21801 "Marc G. Fournier" writes: > Is that possible? I've checked the docs for 8.1, and am not finding > anything, nor anything in contrib ... > the best I've been able to think of so far is to modify pg_hba.conf to not > allow new connections for the duration of the operations I need to perform > (drop and create a database) ... Not sure I understand what you need. DROP DATABASE already locks out new connections. regards, tom lane