How Postgres handles writes

I spent this weekend reading about how Postgres handles writes using the write-ahead log (WAL).