Re: Making sure \timing is on

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, Francisco Reyes <lists(at)stringsutils(dot)com>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making sure \timing is on
Date: 2008-05-12 21:32:56
Message-ID: 20080512213255.GF19344@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

David Fetter escribió:
> On Sun, May 11, 2008 at 11:48:29PM -0400, Tom Lane wrote:
> > "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-05-12 21:50:16 Re: rounding problems
Previous Message Bruce Momjian 2008-05-12 21:30:48 Re: Making sure \timing is on

Browse pgsql-patches by date

  From Date Subject
Next Message David Fetter 2008-05-12 21:57:57 Re: Making sure \timing is on
Previous Message Bruce Momjian 2008-05-12 21:30:48 Re: Making sure \timing is on