mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgstat: remove stats_temp_directory.
With stats now being stored in shared memory, the GUC isn't needed anymore. However, the pg_stat_tmp directory and PG_STAT_TMP_DIR define are kept, as pg_stat_statements (and some out-of-core extensions) store data in it. Docs will be updated in a subsequent commit, together with the other pending docs updates due to shared memory stats. Author: Andres Freund <andres@anarazel.de> Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20220330233550.eiwsbearu6xhuqwe@alap3.anarazel.de Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
This commit is contained in:
@ -78,12 +78,7 @@ PG_MODULE_MAGIC;
|
||||
#define PGSS_DUMP_FILE PGSTAT_STAT_PERMANENT_DIRECTORY "/pg_stat_statements.stat"
|
||||
|
||||
/*
|
||||
* Location of external query text file. We don't keep it in the core
|
||||
* system's stats_temp_directory. The core system can safely use that GUC
|
||||
* setting, because the statistics collector temp file paths are set only once
|
||||
* as part of changing the GUC, but pg_stat_statements has no way of avoiding
|
||||
* race conditions. Besides, we only expect modest, infrequent I/O for query
|
||||
* strings, so placing the file on a faster filesystem is not compelling.
|
||||
* Location of external query text file.
|
||||
*/
|
||||
#define PGSS_TEXT_FILE PG_STAT_TMP_DIR "/pgss_query_texts.stat"
|
||||
|
||||
|
Reference in New Issue
Block a user