Skip to content
Snippets Groups Projects
Commit 70d75697 authored by Magnus Hagander's avatar Magnus Hagander
Browse files

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.
parent 7e61edf2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment