| От | postgresql |
|---|---|
| Тема | mvcc and lock |
| Дата | |
| Msg-id | 200303190811734.SM01104@gaojun обсуждение исходный текст |
| Ответы |
Win32 native port
|
| Список | pgsql-hackers |
Hi all<br />I have read some code on transaction part.<br />When the new transaction starts, it record the snapshot of databasecontaining the current transaction id,etc. So depending on the snapshot<br />, the transaction decide which tupleis visible.<br />But transaction could also be implemented by lock. so I am not sure how <br />the transaction is implemented,by MVCC or Lock, or by both?<br />In my option, when tuple is processed in readonly mode(select), MVCC is enough.but when tuple is changed, lock is used. I am not sure whether the explanation is correct.<br />Thanks for any comments.<br/>Best regards.<br />josh
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера