Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TWAkT-00019j-NT for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 18:53:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TWAkR-0004UM-TI for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 18:53:13 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qA7Ir9PB012832; Wed, 7 Nov 2012 13:53:09 -0500 (EST) From: Tom Lane To: tixu@cs.ucsd.edu cc: pgsql-bugs@postgresql.org Subject: Re: =?utf-8?q?BUG_=237642=3A_Unchecked_=E2=80=9Cstats=5Ftemp=5Fdirecto?= =?utf-8?q?ry=E2=80=9D_causes_server_hang_to_requests?= In-reply-to: References: Comments: In-reply-to tixu@cs.ucsd.edu message dated "Wed, 07 Nov 2012 18:33:12 +0000" Date: Wed, 07 Nov 2012 13:53:09 -0500 Message-ID: <12831.1352314389@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/33 X-Sequence-Number: 34591 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