Move pgstat.tmp into a temporary directory under $PGDATA named pg_stat_tmp.
authorMagnus Hagander <magnus@hagander.net>
Tue, 5 Aug 2008 12:09:30 +0000 (12:09 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 5 Aug 2008 12:09:30 +0000 (12:09 +0000)
commit3a7693151abe50eee7d52b466d733f8523c0a000
treeff41a5a3f5e35d9f1475b163fbe6489ebbbec50f
parentc9658dcb379ed6f0683333c7cbbc62aeb2f58719
Move pgstat.tmp into a temporary directory under $PGDATA named pg_stat_tmp.
This allows the use of a ramdrive (either through mount or symlink) for
the temporary file that's written every half second, which should
reduce I/O.

On server shutdown/startup, the file is written to the old location in
the global directory, to preserve data across restarts.

Bump catversion since the $PGDATA directory layout changed.
doc/src/sgml/monitoring.sgml
doc/src/sgml/storage.sgml
src/backend/postmaster/pgstat.c
src/bin/initdb/initdb.c
src/include/catalog/catversion.h