postgresql/src/backend/storage
Thomas Munro d67dae036b Don't count zero-filled buffers as 'read' in EXPLAIN.
If you extend a relation, it should count as a block written, not
read (we write a zero-filled block).  If you ask for a zero-filled
buffer, it shouldn't be counted as read or written.

Later we might consider counting zero-filled buffers with a separate
counter, if they become more common due to future work.

Author: Thomas Munro
Reviewed-by: Haribabu Kommi, Kyotaro Horiguchi, David Rowley
Discussion: https://postgr.es/m/CAEepm%3D3JytB3KPpvSwXzkY%2Bdwc5zC8P8Lk7Nedkoci81_0E9rA%40mail.gmail.com
2018-11-28 11:58:10 +13:00
..
buffer Don't count zero-filled buffers as 'read' in EXPLAIN. 2018-11-28 11:58:10 +13:00
file Handle EPIPE more sanely when we close a pipe reading from a program. 2018-11-19 17:02:39 -05:00
freespace Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:17 -04:00
ipc Add WL_EXIT_ON_PM_DEATH pseudo-event. 2018-11-23 20:46:34 +13:00
large_object Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
lmgr Add WL_EXIT_ON_PM_DEATH pseudo-event. 2018-11-23 20:46:34 +13:00
page Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
smgr PANIC on fsync() failure. 2018-11-19 17:41:26 +13:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00