X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2E98A476285 for ; Tue, 8 Apr 2003 09:59:03 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 0C074475FBA for ; Tue, 8 Apr 2003 09:58:56 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.3) with SMTP id h38DwxTr027400 for ; Tue, 8 Apr 2003 08:59:00 -0500 Reply-To: From: "Nick Fankhauser - Doxpop" To: "pgsql-admin" Subject: How does PG know when a database is being accessed Date: Tue, 8 Apr 2003 08:56:48 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Status: No, hits=-8.8 required=5.0 tests=BAYES_20,MSGID_GOOD_EXCHANGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/115 X-Sequence-Number: 8270 Hi- This is a problem I've observed on version 7.2.1. I've been doing some setup work that involves dropping & recreating databases a couple of times and I've noticed that once in a while, I'll get the "database is being accessed by other users" message, even after restarting the postmaster. This of course prevents me from dropping the DB. I'd expect to get this if I've killed a client connection and the postmaster hasn't had time to notice that the connection is defunct, but I was surprised that restarting the postmaster didn't clear out the connections. A couple of hours later, I can drop the database with no problem, and I haven't done anything in the meantime, so I presume that a cleanup process has run & tidied things up. How are connections tracked & why does a record of a defunct client process seem to persist through a restart? Thanks -Nick --------------------------------------------------------------------- Nick Fankhauser nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788 doxpop - Court records at your fingertips - http://www.doxpop.com/