Re: Incorrect "ERROR: database "xxx" is being accessed by other users" - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Date
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB201A86FCB@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to Incorrect "ERROR: database "xxx" is being accessed by other users"  ("Dmitry Koterov" <dmitry@koterov.ru>)
List 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

pgsql-general by date:

Previous
From: "Dmitry Koterov"
Date:
Subject: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Next
From: Michael Fuhr
Date:
Subject: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"