From: Tom Lane <tgl@sss.pgh.pa.us>
To: tixu@cs.ucsd.edu
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7642: Unchecked “stats_temp_directory” causes server hang to requests
Date: Wed, 07 Nov 2012 13:53:09 -0500
Message-ID: <12831.1352314389@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TWAR6-0003YD-KM@wrigleys.postgresql.org>
References: <E1TWAR6-0003YD-KM@wrigleys.postgresql.org>
tixu@cs.ucsd.edu writes:
> I set the stats_temp_directory='' in my postgresql.conf file, with the
> expectation that the directory would be under the data directory.
Why would you think that's a good idea? It's already going to be under
the data directory. The only reason to change this setting is if you're
going to point to a ramdisk somewhere, which is going to need an
absolute path.
> I found pg has several unchecked user configurations which might cause
> problems at run-time. I suggest to check it like what has been done for
> “data_directory” to avoid latter problems. Here is the patches.
This patch seems to have got mangled by your mailer, but in any case I
don't really see the value. There are any number of ways to mess up
settings like these, and only some of them are detectable by tests
of this sort. Also, the proposed patch only checks at startup time;
if we're going to install training wheels, that doesn't seem sufficient.
regards, tom lane
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, tixu@cs.ucsd.edu
Subject: Re: BUG #7642: Unchecked “stats_temp_directory” causes server hang to requests
In-Reply-To: <12831.1352314389@sss.pgh.pa.us>
References: <E1TWAR6-0003YD-KM@wrigleys.postgresql.org> <12831.1352314389@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