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

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Дата
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB201A86FCB@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на Incorrect "ERROR: database "xxx" is being accessed by other users"  ("Dmitry Koterov" <dmitry@koterov.ru>)
Список 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 по дате отправления:

Предыдущее
От: "Dmitry Koterov"
Дата:
Сообщение: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Incorrect "ERROR: database "xxx" is being accessed by other users"