logoalt Hacker News

Tostinoyesterday at 2:39 PM1 replyview on HN

Look up how "checkpointing" works in Postgres.


Replies

Sesse__yesterday at 6:22 PM

I know how checkpointing works in Postgres (which isn't very different from how it works in most other redo-log implementations). It still does not change that you need to actually update the heap at some point.

Postgres allows a group commit to try to combine multiple transactions to avoid the multiple fsyncs, but it adds delay and is off by default. And even so, it reduces fsyncs, not writes.