diff options
author | Magnus Hagander <magnus@hagander.net> | 2012-05-27 10:54:31 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2012-05-27 10:58:14 +0200 |
commit | 2791f2180d8e7c469fac2a4d88fc449689e4c970 (patch) | |
tree | f42123965177d69ec4bcce2ffbbe5ee04a477b41 /contrib/btree_gist/btree_gist.c | |
parent | 6c1bf45ea50a652d2b8efa778cabb63fdf422e70 (diff) | |
download | postgresql-2791f2180d8e7c469fac2a4d88fc449689e4c970.tar.gz postgresql-2791f2180d8e7c469fac2a4d88fc449689e4c970.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 'contrib/btree_gist/btree_gist.c')
0 files changed, 0 insertions, 0 deletions