]> granicus.if.org Git - postgresql/commit
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)
commit70d756970b7b2e93e6f807f5c55e2ad7727e212a
treefa46246b40b89f17a0cb2605068234ffa75c7c0e
parent7e61edf2e7c0abc32c7bbf758d44e92fd76ed7d4
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