Deadlock with one table - PostgreSQL is doing it right
От | Hans Schou |
---|---|
Тема | Deadlock with one table - PostgreSQL is doing it right |
Дата | |
Msg-id | CAApBw36hmDPXTN44Fxx=CCgTgf+-iDsBzNOTtnF-QaCfAOSncQ@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Deadlock with one table - PostgreSQL is doing it right
Re: Deadlock with one table - PostgreSQL is doing it right |
Список | pgsql-general |
Hi
FYI - if it has any interestAfter both processes commit's the table should be:
i | n
---+---
1 | 11
2 | 21
in Oracle it is:
i | n
---+---
1 | 11
2 | 22
A
select * from t;
begin;
update t set n=n+1 where i=2;
B
begin;
update t set n=n+1 where i=1;
update t set n=n+1 where i=2;
A
update t set n=n+1 where i=1;
B
commit;
A
commit;
В списке pgsql-general по дате отправления: