zlacker

[parent] [thread] 8 comments
1. Ym9oYW+(OP)[view] [source] 2023-04-26 17:28:45
So why Postgres chooses the worst MVCC design compared to MySQL and Oracle? Is this because of legacy reasons or other factors?
replies(1): >>apavlo+k3
2. apavlo+k3[view] [source] 2023-04-26 17:42:58
>>Ym9oYW+(OP)
Legacy reasons. The idea was that you wouldn't need a WAL because the table itself is the log. And then you could support time-travel queries if you never cleaned up the expired tuples.
replies(2): >>riku_i+Pp >>drkp+vB
◧◩
3. riku_i+Pp[view] [source] [discussion] 2023-04-26 19:35:17
>>apavlo+k3
Is MVCC actually superior by some other considerations? Less lock contentions, transactional DML.
replies(1): >>maskli+gL
◧◩
4. drkp+vB[view] [source] [discussion] 2023-04-26 20:32:48
>>apavlo+k3
_And_ it wasn't even originally designed to be used for concurrency control at all...
◧◩◪
5. maskli+gL[view] [source] [discussion] 2023-04-26 21:18:27
>>riku_i+Pp
The problem is not mvcc but postgres’ implementation details of it.
replies(1): >>Max-Ga+HL
◧◩◪◨
6. Max-Ga+HL[view] [source] [discussion] 2023-04-26 21:20:42
>>maskli+gL
In what way? I didn't see anything obviously improper when I learned how serialization isolation worked.
replies(2): >>j16sdi+xi1 >>maskli+DG1
◧◩◪◨⬒
7. j16sdi+xi1[view] [source] [discussion] 2023-04-27 01:39:41
>>Max-Ga+HL
A delicated full vacuum process that need full locking, how little isolation between tables, etc

Lots of the pain point have been mitigated in the last ten years. It is now as simple as other comparable complex db can go (i.e. Not simple, but you can't find better product)

◧◩◪◨⬒
8. maskli+DG1[view] [source] [discussion] 2023-04-27 05:38:22
>>Max-Ga+HL
TFA covers its issues? It’s specifically compares postgres’ to other implementations’ (oracle and mysql).
replies(1): >>jabl+cK1
◧◩◪◨⬒⬓
9. jabl+cK1[view] [source] [discussion] 2023-04-27 06:13:43
>>maskli+DG1
Also the paper linked from TFA goes into the various implementation options in more detail: https://db.cs.cmu.edu/papers/2017/p781-wu.pdf
[go to top]