amitkapila
Online Upgrading Logical and Physical Replication Nodes
Updates on PostgreSQL
Are you interested in the latest developments in PostgreSQL? Check out this insightful article on the evolution of Logical Replication in PostgreSQL: https://amitkapila16.blogspot.com/2023/09/evolution-of-logical-replication.html. For even more information, make sure to watch this video discussing changes in version 16: https://lnkd.in/ddj-ZYTG and read this blog post:...
Improved vacuum in PostgreSQL 13
Parallelism, What Next?
Parallel Index Scans in PostgreSQL
In zheap, we need to write an old row in undo, but in many cases, it won't be written to disk as undo worker will discard the undo very quickly unless there are open snapshots. In this, we don't need to perform Hot-pruning. So, there is an additional cost of memory copy, but that is more than compensated by savings.
You can read 'macdice' reply in this regards.
"I would like to mention that the above results don't mean that zheap will be better in all cases than heap. For example, rollbacks will be costlier in zheap. Just to be clear, this storage format is proposed as another format alongside current heap, so that users can decide which storage they want to use for their use case."
I think there are other benefits too in terms of just raw performance because it avoids a lot of work like HOT pruning. Yes, it instead needs to discard undo, but that is much cheaper.
In general, I think it is an overstatement to say that this is a wasted effort.