diff options
author | Greg Stark <stark@mit.edu> | 2010-02-15 00:50:57 +0000 |
---|---|---|
committer | Greg Stark <stark@mit.edu> | 2010-02-15 00:50:57 +0000 |
commit | f8c183a1ac02aef14832c1f29946ef2bcb5866b7 (patch) | |
tree | fcbeac8862b585b58786fead156a43022d015224 /src/backend/commands/explain.c | |
parent | e26c539e9f326ea843c0ed005af093b56b55cd4d (diff) | |
download | postgresql-f8c183a1ac02aef14832c1f29946ef2bcb5866b7.tar.gz postgresql-f8c183a1ac02aef14832c1f29946ef2bcb5866b7.zip |
Speed up CREATE DATABASE by deferring the fsyncs until after copying
all the data and using posix_fadvise to nudge the OS into flushing it
earlier. This also hopefully makes CREATE DATABASE avoid spamming the
cache.
Tests show a big speedup on Linux at least on some filesystems.
Idea and patch from Andres Freund.
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions