Re: Database in use?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carol Walter <walterc(at)indiana(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Database in use?
Date: 2009-03-03 01:31:21
Message-ID: 1730.1236043881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Carol Walter <walterc(at)indiana(dot)edu> writes:
> I'm not sure I understand. If there is a lag time between when
> someone exits the database and when the database "knows" that no one
> is still in it, then that shouldn't be the problem here. I tried a
> number of time over the course of 24 hours to rename the database and
> it always reported that the database was in use. No one was logged in
> but me, but the database still reported that the database was in use.

Hmph. Are you sure nothing was connected? One thing that frequently
trips people up here is uncommitted prepared transactions --- look in
pg_prepared_xacts.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Julius Tuskenis 2009-03-03 07:36:47 Re: Database in use?
Previous Message Carol Walter 2009-03-02 21:44:41 Re: Database in use?