aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2012-05-27 10:54:31 +0200
committerMagnus Hagander <magnus@hagander.net>2012-05-27 10:54:31 +0200
commit2b97db61dd0bffb0843eb2ea9be054d925e88ef1 (patch)
treee0941e73fb33295339db2ba6d74d328d22a27033 /src/backend/access/gist/gistutil.c
parent532fe28dade9291b7a7f7de3920a4d997bbd86a1 (diff)
downloadpostgresql-2b97db61dd0bffb0843eb2ea9be054d925e88ef1.tar.gz
postgresql-2b97db61dd0bffb0843eb2ea9be054d925e88ef1.zip
Fix handling of pg_stat_statements.stat temporary file
Write the file to a temporary name and then rename() it into the permanent name, to ensure it can't end up half-written and corrupt in case of a crash during shutdown. Unlink the file after it has been read so it's removed from the data directory and not included in base backups going to replication slaves.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions