Strange result using transactions

Поиск
Список
Период
Сортировка
Искать
От
Matthijs Melissen
Тема
Strange result using transactions
Дата
Msg-id
06ba01c76f39$c39b43a0$5ee26191@Matthijs
Список
Дерево обсуждения
Strange result using transactions "Matthijs Melissen" <melissen@phil.uu.nl>
Re: Strange result using transactions Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange result using transactions "Pavan Deolasee" <pavan.deolasee@gmail.com>
Re: Strange result using transactions Alban Hertroys <alban@magproductions.nl>
Re: Strange result using transactions "Stuart Cooper" <stuart.cooper@gmail.com>
I am executing the following queries (id has a unique key):

1) begin;
1) delete from forum where id = 20;
1) insert into forum (id, name) values (20, 'test');
2) delete from forum where id = 20;
1) commit;

Queries marked with 1) are executed by process 1 and queries marked with 2) 
are executed by process 2.

The problem is that process 2 gets the message 'DELETE 0'. I would expect 
him to get the message 'DELETE 1'.

Can anyone explain this behaviour?

Thanks in advance!

Matthijs Melissen


В списке pgsql-general по дате отправления
От: Jaro
Дата:
От: filippo
Дата:
FAQ