Re: 2PC-induced lockup

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 2PC-induced lockup
Дата
Msg-id 19475.1184078491@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 2PC-induced lockup  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: 2PC-induced lockup
Re: 2PC-induced lockup
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> The following command sequence appears to lock up the database system:
> BEGIN;
> LOCK pg_authid;
> PREPARE TRANSACTION 'foo';
> \q

> After that you can't connect anymore, even in single-user mode.  The
> only way I could find is to clear out the pg_twophase directory, but
> I'm not sure whether it is safe to do that.

> Should this be prevented somehow, and is there a better recovery path?

AFAICS this is just one of many ways in which a superuser can shoot
himself in the foot; I'm not eager to try to prevent it.

Right offhand, clearing pg_twophase while the system is stopped should
be safe enough.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hans-Juergen Schoenig
Дата:
Сообщение: Re: 2PC-induced lockup
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GSSAPI patch