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

From: "Dmitry Koterov" <dmitry(at)koterov(dot)ru>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Date: 2007-03-13 08:41:46
Message-ID: d7df81620703130141l41c2208bl87494ef4f7a8d75a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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"...
Database restart does not reset the prepared transaction...

On 3/13/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Dmitry Koterov" <dmitry(at)koterov(dot)ru> writes:
> > I have a database which I cannot delete (the same for rename):
> > ERROR: database "xxx" is being accessed by other users
> > But it is NOT accessed by anybody, because:
>
> Have you checked for prepared transactions in that DB? See
> pg_prepared_xacts view (I've been burnt by that myself...)
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-03-13 09:51:12 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Previous Message Tom Lane 2007-03-13 08:07:47 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"