stats_temp_directory is a configuration parameter determining the location of the directory for storing temporary statistics data in.
By default, temporary statistics data is stored in the
pg_stat_tmp directory within the data directory. However it may be desirable to use a custom location such as a RAM-based disk for better performance; this can be achieved by setting
From PostgreSQL 15, temporary statistics are stored in memory by default so
stats_temp_directory will no longer be available.
The default value for