Re: Incorrect "ERROR: database "xxx" is being accessed by other users"

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Dmitry Koterov <dmitry(at)koterov(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Date: 2007-03-13 09:52:59
Message-ID: 20070313095259.GA91173@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 13, 2007 at 11:41:46AM +0300, Dmitry Koterov wrote:
> Yes, I have one!
> How to remove it now? I tried DEALLOCATE for gid returned by
>
> select * from pg_prepared_xacts;
>
> but it says "prepared statement does not exist"...

DEALLOCATE is for prepared *statements*; you have a prepared
*transaction*. Connect to the database you're trying to drop and
use ROLLBACK PREPARED or COMMIT PREPARED, then disconnect from that
database and try dropping it again.

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Koterov 2007-03-13 11:13:45 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Previous Message Albe Laurenz 2007-03-13 09:51:12 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"