diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-02-19 10:51:04 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-02-19 10:51:04 +0000 |
commit | ad458cfe81bcefd6d8bd17ff2e42c6599d441bd6 (patch) | |
tree | a4e6d3c89e74fbd65b03103d7a4a575f96f3a6fa /src/backend/commands/variable.c | |
parent | 94f610b16342d7727774f6bb9245341cfa6f895c (diff) | |
download | postgresql-ad458cfe81bcefd6d8bd17ff2e42c6599d441bd6.tar.gz postgresql-ad458cfe81bcefd6d8bd17ff2e42c6599d441bd6.zip |
Don't use O_DIRECT when writing WAL files if archiving or streaming is
enabled. Bypassing the kernel cache is counter-productive in that case,
because the archiver/walsender process will read from the WAL file
soon after it's written, and if it's not cached the read will cause
a physical read, eating I/O bandwidth available on the WAL drive.
Also, walreceiver process does unaligned writes, so disable O_DIRECT
in walreceiver process for that reason too.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions