Тип: | string |
По умолчанию: | pg_stat_tmp |
Контекст: | sighup |
Перезапуск: | false |
Задаёт каталог, в котором будут храниться временные данные статистики. Этот путь может быть абсолютным или задаваться относительно каталога данных. Значение по умолчанию — pg_stat_tmp. Если разместить целевой каталог в файловой системе в ОЗУ, это снизит нагрузку на физическое дисковое хранилище и может увеличить быстродействие. Задать этот параметр можно только в postgresql.conf или в командной строке при запуске сервера.
Рекомендации [EN]
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.
На 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
На pgsql-hackers
- Re: Expand the use of check_canonical_path() for more GUCs
- Re: make the stats collector shutdown without writing the statsfiles if the immediate shutdown is requested.
- 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