]> granicus.if.org Git - postgresql/commit
Use posix_fallocate() for new WAL files, where available.
authorJeff Davis <jdavis@postgresql.org>
Fri, 5 Jul 2013 19:30:29 +0000 (12:30 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 5 Jul 2013 19:30:29 +0000 (12:30 -0700)
commit269e780822abb2e44189afaccd6b0ee7aefa7ddd
tree76d0cbcf24f58313c0ff0684ed2cc0709fb1d9cd
parent8800d8061dd151d6556f5f8d58f8211fd830169f
Use posix_fallocate() for new WAL files, where available.

This function is more efficient than actually writing out zeroes to
the new file, per microbenchmarks by Jon Nelson. Also, it may reduce
the likelihood of WAL file fragmentation.

Jon Nelson, with review by Andres Freund, Greg Smith and me.
configure
configure.in
src/backend/access/transam/xlog.c
src/include/pg_config.h.in
src/include/pg_config.h.win32