Re: Making sure \timing is on

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Making sure \timing is on
Дата
Msg-id 20080512213255.GF19344@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Making sure \timing is on  (David Fetter <david@fetter.org>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Making sure \timing is on
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: rounding problems