X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4490D475FFF for ; Fri, 18 Apr 2003 15:07:32 -0400 (EDT) Received: from proteus.affordablehost.com (unknown [216.46.203.177]) by postgresql.org (Postfix) with SMTP id 663B9475EF0 for ; Fri, 18 Apr 2003 15:07:31 -0400 (EDT) Received: (qmail 15843 invoked from network); 18 Apr 2003 19:07:30 -0000 Received: from unknown (HELO e-greek.net) (66.92.74.181) by 216.46.203.177 with SMTP; 18 Apr 2003 19:07:30 -0000 Message-ID: <3EA04CF6.80900@e-greek.net> Date: Fri, 18 Apr 2003 15:07:34 -0400 From: Andrew Biagioni User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: nickf@ontko.com Cc: Tom Lane , pgsql-admin Subject: Re: How does PG know when a database is being accessed ? References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------090006080402070401040201" X-Spam-Status: No, hits=-33.2 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,HTML_20_30,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA 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/261 X-Sequence-Number: 8416 This is a multi-part message in MIME format. --------------090006080402070401040201 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nick Fankhauser wrote: >>It most certainly does. You sure you don't have new connections coming >>in all the time? >> >> > >Pretty sure- That was my first thought as well, so I checked for stray >processes. I'm in the middle of something else right now, but this evening >I'll see if I can reproduce the problem and supply the details. > >-Nick > > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > >http://www.postgresql.org/docs/faqs/FAQ.html > > What happens to me occasionally, is that I open pgAdminII and (in some versions and/or configurations) that opens all the DBs and delete-locks them. Other times I connect via psql (on a linux box) to the actual DB I'm trying to drop. In other words, I found that often I'm the culprit myself. I now check regularly by executing: $ ps auxwww | grep "^postgres" | grep -v grep | grep [database name] and that shows me who is connected to the DB. Andrew --------------090006080402070401040201 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Nick Fankhauser wrote:
It most certainly does.  You sure you don't have new connections coming
in all the time?
    

Pretty sure- That was my first thought as well, so I checked for stray
processes. I'm in the middle of something else right now, but this evening
I'll see if I can reproduce the problem and supply the details.

-Nick


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html
  
What happens to me occasionally, is that I open pgAdminII and (in some versions and/or configurations) that opens all the DBs and delete-locks them.  Other times I connect via psql (on a linux box) to the actual DB I'm trying to drop.

In other words, I found that often I'm the culprit myself.  I now check regularly by executing:

$ ps auxwww | grep "^postgres" | grep -v grep | grep [database name]

and that shows me who is connected to the DB.

       Andrew

--------------090006080402070401040201--