pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Biagioni <andrew.biagioni@e-greek.net>
To: nickf@ontko.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: How does PG know when a database is being accessed ?
Date: Fri, 18 Apr 2003 15:07:34 -0400
Message-ID: <3EA04CF6.80900@e-greek.net> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGKEAKHCAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGKEAKHCAA.nickf@ontko.com>

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

view thread (5+ messages)

Message-ID: <3EA04CF6.80900@e-greek.net>
Permalink:  ../3EA04CF6.80900@e-greek.net/
Also on:    postgresql.org/message-id/3EA04CF6.80900@e-greek.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew.biagioni@e-greek.net, nickf@ontko.com, tgl@sss.pgh.pa.us
  Subject: Re: How does PG know when a database is being accessed ?
  In-Reply-To: <3EA04CF6.80900@e-greek.net>
  References: <NEBBLAAHGLEEPCGOBHDGKEAKHCAA.nickf@ontko.com> <3EA04CF6.80900@e-greek.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox