Type: | string |
Défaut: | pg_stat_tmp |
Contexte: | sighup |
Redémarrer: | false |
Précise le répertoire dans lequel stocker les données temporaires de statistiques. Cela peut être un chemin relatif au répertoire de données ou un chemin absolu. La valeur par défaut est pg_stat_tmp. Faire pointer ceci vers un système de fichiers mémoire diminuera les entrées/sorties physiques et peut améliorer les performances. Ce paramètre ne peut être positionné que dans le fichier postgresql.conf ou sur la ligne de commande.
Recommandations [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.
Sur 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
Sur 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