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

From Alvaro Herrera
Subject Re: Making sure \timing is on
Date
Msg-id 20080512213255.GF19344@alvh.no-ip.org
Whole thread Raw
In response to Re: Making sure \timing is on  (David Fetter <david@fetter.org>)
List pgsql-general
David Fetter escribió:
> 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,

Hmm, there's already code for parsing boolean variables in psql, see
ParseVariableBool.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

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