Type: | string |
Default: | pg_stat_tmp |
Context: | sighup |
Restart: | false |
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 file system will decrease physical I/O requirements and can lead to improved performance. This parameter can only be set in the postgresql.conf file or on the server command line.
Recommendations
Useful for extremely high-volume databases; the stats temp directory could be set to a RAMdisk or other high-speed resource (at the cost of potentially losing some stats) as this file gets updated hundreds of times per second.
On StackOverflow
- How to activate Postgresql statistics collector?
- Validate database output using chef inspec
- Postgres highload. 20000 requests per min causes resource request timed out
- Postgres process shows 100% CPU but actual usage is 6%, resulting in slow query response
- Postgres autovacuum fails to start due to misconfiguration
On pgsql-hackers
- Re: Expand the use of check_canonical_path() for more GUCs
- Re: shared-memory based stats collector
- Re: Postgresql13_beta1 (could not rename temporary statistics file) Windows 64bits
- Creating a function for exposing memory usage of backend process
- Re: Creating a function for exposing memory usage of backend process