Make the temporary directory for pgstat files configurable by the GUC
Magnus Hagander <magnus@hagander.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +17 −1 |
| doc/src/sgml/monitoring.sgml | modified | +3 −3 |
| src/backend/postmaster/pgstat.c | modified | +13 −8 |
| src/backend/utils/misc/guc.c | modified | +34 −1 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −0 |
| src/include/pgstat.h | modified | +3 −1 |