Re: A few beginner's questions concerning concurrency control
В списке pgsql-general по дате отправления:
| От | Karsten Hilbert |
|---|---|
| Тема | Re: A few beginner's questions concerning concurrency control |
| Дата | |
| Msg-id | 20040629115141.G559@hermes.hilbert.loc обсуждение исходный текст |
| Ответ на | A few beginner's questions concerning concurrency control (Yoram Biberman <yoramb@hadassah-col.ac.il>) |
| Список | pgsql-general |
> Question #3 > ========= > In some places it is said that a transaction that only reads does not lock > any table or row, and is never blocked. But if a transaction T1 modifies a > row r, and at the same time transaction T2 selects r, then T2 need to wait > until T1 finishes (as T1 might have deleted the row, or modified it in a way > that would cause T1 not to need it, as the row does not satisfy T2?s WHERE > clause). The answer lies in the application of MVCC. You already said above that each transaction sees tuples as if it ran all by itself (which is only true for some of the transaction isolation levels). Aborts (if attempts to write to changed data occur) are involved. Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера