pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser - Doxpop <nickf@doxpop.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: How does PG know when a database is being accessed
Date: Tue, 8 Apr 2003 08:56:48 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com> (raw)

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/




view thread (5+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com

 · 

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: nickf@doxpop.com
  Subject: Re: How does PG know when a database is being accessed
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com>
  References: <NEBBLAAHGLEEPCGOBHDGMEAGHCAA.nickf@doxpop.com>

* 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