pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp
2+ messages / 2 participants
[nested] [flat]
* BUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp
@ 2018-09-08 07:08 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2018-09-08 07:08 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: maxim.boguk@gmail.com
The following bug has been logged on the website:
Bug reference: 15372
Logged by: Maxim Boguk
Email address: maxim.boguk@gmail.com
PostgreSQL version: 9.6.10
Operating system: Linux
Description:
Hi,
pg_stat_statements extension always write pgss_query_texts.stat file into
data_directory/pg_stat_tmp
and ignore stats_temp_directory settings which supposed to overwrite stat
directory location.
It isn't good because this file could be quite a large (and almost always
larger than standard pg_stat_tmp content).
It seems that the issue exists in any supported version of the database.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp
@ 2018-09-08 11:11 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2018-09-08 11:11 UTC (permalink / raw)
To: maxim.boguk@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> pg_stat_statements extension always write pgss_query_texts.stat file into
> data_directory/pg_stat_tmp
> and ignore stats_temp_directory settings which supposed to overwrite stat
> directory location.
This is operating as designed, see comment in pg_stat_statements.c:
/*
* 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.
*/
#define PGSS_TEXT_FILE PG_STAT_TMP_DIR "/pgss_query_texts.stat"
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-09-08 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-08 07:08 BUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp PG Bug reporting form <noreply@postgresql.org>
2018-09-08 11:11 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox