Re: BUG #19081: Inconsistent target rows seen by the UPDATE and INSERT statements within the same transaction

Поиск
Список
Период
Сортировка
От 崔紫玉
Тема Re: BUG #19081: Inconsistent target rows seen by the UPDATE and INSERT statements within the same transaction
Дата
Msg-id 5eba3d4e.22dfa.199ebed21cd.Coremail.cuiziyu20@otcaix.iscas.ac.cn
обсуждение исходный текст
Ответ на Re: BUG #19081: Inconsistent target rows seen by the UPDATE and INSERT statements within the same transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi,

Thank you for your explanation. However, for the UPDATE statement “UPDATE t0 SET c1 = 9, c2 = 9 WHERE c2 = 5;” in
transaction2, why does the UPDATE statement in transaction 2 in the first case fail to match the row that was changed
to(5, 5) in the committed transaction 1? In the second case, why does the UPDATE statement in transaction 2 report an
error“could not serialize access due to concurrent update”? 

Best regards,
Ziyu Cui

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