aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2013-07-05 12:30:29 -0700
committerJeff Davis <jdavis@postgresql.org>2013-07-05 12:30:29 -0700
commit269e780822abb2e44189afaccd6b0ee7aefa7ddd (patch)
tree76d0cbcf24f58313c0ff0684ed2cc0709fb1d9cd /src/backend/parser/parse_utilcmd.c
parent8800d8061dd151d6556f5f8d58f8211fd830169f (diff)
downloadpostgresql-269e780822abb2e44189afaccd6b0ee7aefa7ddd.tar.gz
postgresql-269e780822abb2e44189afaccd6b0ee7aefa7ddd.zip
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.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions