[HACKERS] mvcc and lock

2003-03-23 Thread postgresql
Hi all I have read some code on transaction part. When the new transaction starts, it record the snapshot of database containing the current transaction id,etc. So depending on the snapshot , the transaction decide which tuple is visible. But transaction could also be implemented by lock. so I am

[HACKERS] mvcc and lock

2003-03-18 Thread postgresql
Hi allI have read some code on transaction part.When the new transaction starts, it record the snapshot of database containing the current transaction id,etc. So depending on the snapshot, the transaction decide which tuple is visible.But transaction could also be implemented by lock. so