From 5b8eb2b4b95ac4b016368ce6ca2c3477387e7fc7 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 15 Aug 2008 08:37:41 +0000 Subject: Make the temporary directory for pgstat files configurable by the GUC variable stats_temp_directory, instead of requiring the admin to mount/symlink the pg_stat_tmp directory manually. For now the config variable is PGC_POSTMASTER. Room for further improvment that would allow it to be changed on-the-fly. --- doc/src/sgml/config.sgml | 18 +++++++++++++++++- doc/src/sgml/monitoring.sgml | 6 +++--- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 6e65251746c..16a309547b1 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -3394,6 +3394,22 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv; + + stats_temp_directory (string) + + stats_temp_directory configuration parameter + + + + Sets the directory to store temporary statistics data in. This can be a + path relative to the data directory or an absolute path. The default is + pg_stat_tmp. Pointing this at a RAM based filesystem + will decrease physical I/O requirements and can lead to increased + performance. This parameter can only be set at server start. + + + + diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 29a3e107030..ab30d87202a 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1,4 +1,4 @@ - + Monitoring Database Activity @@ -171,8 +171,8 @@ postgres: user database host pg_stat_tmp subdirectory. When the postmaster shuts down, a permanent copy of the statistics data is stored in the global subdirectory. For increased - performance, it is possible to mount or symlink a RAM based - filesystem to the pg_stat_tmp directory. + performance, the parameter can + be pointed at a RAM based filesystem, decreasing physical I/O requirements. -- cgit v1.2.3