Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Nhk-0008Be-30 for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:27:08 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Nhj-00075M-1Q for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:27:07 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1T1Nhi-0002xp-Fw; Tue, 14 Aug 2012 16:27:06 -0400 Date: Tue, 14 Aug 2012 16:27:06 -0400 From: Bruce Momjian To: Christoph Anton Mitterer Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6150: commit_delay should have unit ms Message-ID: <20120814202706.GA8324@momjian.us> References: <201108042130.p74LUZF0077012@wwwmaster.postgresql.org> <20120814201840.GD11913@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120814201840.GD11913@momjian.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/82 X-Sequence-Number: 33806 On Tue, Aug 14, 2012 at 04:18:40PM -0400, Bruce Momjian wrote: > On Thu, Aug 4, 2011 at 09:30:35PM +0000, Christoph Anton Mitterer wrote: > > > > The following bug has been logged online: > > > > Bug reference: 6150 > > Logged by: Christoph Anton Mitterer > > Email address: calestyo@scientia.net > > PostgreSQL version: 0.9 > > Operating system: Debian sid > > Description: commit_delay should have unit ms > > Details: > > > > Hi. > > > > AFAIK form the documentation, the setting commit_delay, should have the base > > unit "ms". > > > > However, when doing something like > > $ psql -c 'SELECT name,vartype,unit FROM pg_settings;' | grep commit_delay > > I get: > > could not change directory to "/root/test" > > commit_delay | integer | > > > > No unit. > > Yes, you are correct. The attached, applied patch for Postgres 9.3 will > properly display units. I checked all the other variables and they all > had proper units. > > I also removed an unnecessary units designation in > postgresql.conf.sample for a zero value --- if we want to put units on > zero values, we should do it consistently in a separate patch. Opps, turns out the units are microseconds (as pointed out to me by Magnus), and we don't have a microsecond designation in that file, so I reverted that and just added a C comment about why it has no units. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +