aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorGreg Stark <stark@mit.edu>2010-02-15 00:50:57 +0000
committerGreg Stark <stark@mit.edu>2010-02-15 00:50:57 +0000
commitf8c183a1ac02aef14832c1f29946ef2bcb5866b7 (patch)
treefcbeac8862b585b58786fead156a43022d015224 /src/backend/commands/explain.c
parente26c539e9f326ea843c0ed005af093b56b55cd4d (diff)
downloadpostgresql-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