Re: Making sure \timing is on - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Making sure \timing is on
Date
Msg-id 200805122130.m4CLUmc03905@momjian.us
Whole thread Raw
In response to Re: Making sure \timing is on  (David Fetter <david@fetter.org>)
Responses Re: Making sure \timing is on  (David Fetter <david@fetter.org>)
List pgsql-general
David Fetter wrote:
> On Sun, May 11, 2008 at 11:48:29PM -0400, Tom Lane wrote:
> > "Scott Marlowe" <scott.marlowe@gmail.com> writes:
> > > Is it reasonable behavior to have \timing along toggle and \timing on
> > > / \timing off be a forced switch?  Just thinking of other scripts
> > > where this isn't a problem and having to update them.
> >
> > The command without an argument should certainly keep the old toggle
> > behavior, for backwards compatibility.
>
> Attached patch does some of the right thing, but doesn't yet handle
> error cases.  How liberal should we be about capitalization, spelling,
> etc.?

Please try ParseVariableBool() in psql/variables.c, and use diff -c.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: rounding problems
Next
From: Alvaro Herrera
Date:
Subject: Re: Making sure \timing is on