pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: maxim.boguk@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp
Date: Sat, 08 Sep 2018 07:11:30 -0400
Message-ID: <13344.1536405090@sss.pgh.pa.us> (raw)
In-Reply-To: <153639050273.23141.4409952612133047117@wrigleys.postgresql.org>
References: <153639050273.23141.4409952612133047117@wrigleys.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




view thread (2+ messages)

Message-ID: <13344.1536405090@sss.pgh.pa.us>
Permalink:  ../13344.1536405090@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13344.1536405090@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, maxim.boguk@gmail.com
  Subject: Re: BUG #15372: pg_stat_statements extension ignore stats_temp_directory setting and always write into pg_stat_tmp
  In-Reply-To: <13344.1536405090@sss.pgh.pa.us>
  References: <153639050273.23141.4409952612133047117@wrigleys.postgresql.org> <13344.1536405090@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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