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

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: <dmitry(at)koterov(dot)ru>, "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 09:51:12
Message-ID: AFCCBB403D7E7A4581E48F20AF3E5DB201A86FCB@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dmitry Koterov wrote:
>> Have you checked for prepared transactions in that DB? See
>> pg_prepared_xacts view (I've been burnt by that myself...)
>
> 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...

The command is: ROLLBACK PREPARED 'yourgid'

'DEALLOCATE' is for prepared statements.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2007-03-13 09:52:59 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Previous Message Dmitry Koterov 2007-03-13 08:41:46 Re: Incorrect "ERROR: database "xxx" is being accessed by other users"