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.