Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 13D8A650455 for ; Fri, 18 Jul 2008 12:16:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40161-03-2 for ; Fri, 18 Jul 2008 12:16:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.int.journyx.com (mail.journyx.com [66.219.41.227]) by postgresql.org (Postfix) with ESMTP id C98986502E9 for ; Fri, 18 Jul 2008 12:08:00 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id ECC94ABCC97 for ; Fri, 18 Jul 2008 10:07:51 -0500 (CDT) X-Virus-Scanned: amavisd-new at Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rrp1scIhrCQC for ; Fri, 18 Jul 2008 10:07:46 -0500 (CDT) Received: from whitneys (dhcp-100-201.int.journyx.com [192.168.100.201]) by mail.int.journyx.com (Postfix) with ESMTP id D5E22ABCC8C for ; Fri, 18 Jul 2008 10:07:44 -0500 (CDT) From: "Scott Whitney" To: Subject: Stop connections to a specific database Date: Fri, 18 Jul 2008 10:07:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Acjo6A9Ugz2xL6ibTNCnAIa0iIGFYA== Message-Id: <20080718150744.D5E22ABCC8C@mail.int.journyx.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/162 X-Sequence-Number: 29772 I'm migrating a pg server (v 8.1.4) this weekend, and I have 2 dbs left on it. One cannot be shut down until tomorrow. The last remaining one, I can migrate today. However, the software that talks to it is somewhat "hinky" and has several places that connect -- there is no overall consolidated connection information. To ensure this is working properly, I want to disable connections to that db on the old server while using the new one for testing, to ensure everything is properly working. Given the fact that the other db must remain live on this old server during that time, I just want to stop connections to this one particular database. Is there a simple, preferred method for doing so?