Re: commit after dead lock

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: commit after dead lock
Дата
Msg-id 20040129170739.U35951@megazone.bigpanda.com
обсуждение исходный текст
Ответ на commit after dead lock  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: commit after dead lock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Fri, 30 Jan 2004, Gaetano Mendola wrote:

> Hi all,
> is it normal that postgres dont complain
> doing a commit after a deadlock ?
>
> kalman=# select * from test where a = 5 for update;
> ERROR:  deadlock detected
> DETAIL:  Process 4144 waits for ShareLock on transaction 40180; blocked
> by process 4141.
> Process 4141 waits for ShareLock on transaction 40181; blocked by
> process 4144.
> kalman=# commit;
> COMMIT

It's not really any different than other errors. The commit doesn't
complain (although it also doesn't actually commit anything).

sszabo=# begin;
BEGIN
sszabo=# select * from foo;
ERROR:  relation "foo" does not exist
sszabo=# commit;
COMMIT


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

Предыдущее
От: Mark Harrison
Дата:
Сообщение: hung postmaster when client machine dies?
Следующее
От: Andrew Rawnsley
Дата:
Сообщение: Re: Forcing connections closed