Re: Making sure \timing is on

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making sure \timing is on
Date: 2008-05-12 03:04:33
Message-ID: 4231.1210561473@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Francisco Reyes <lists(at)stringsutils(dot)com> writes:
> Tom Lane writes:
>> Not that I know of :-(. There's been discussion of fixing all of psql's
>> "toggle" commands to offer "\foo on" and "\foo off"

> What would be a good starting point for someone interesting in looking into
> working on that?

This'd be a fine starting project IMHO, if you can read/code C at all.
The rubber meets the road in exec_command() in src/bin/psql/command.c
--- look around in that area. In particular note that ParseVariableBool
in variables.c probably ought to be what you use to interpret the
meaning of the argument.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-05-12 03:25:54 Re: Making sure \timing is on
Previous Message Francisco Reyes 2008-05-12 02:43:19 Re: Making sure \timing is on

Browse pgsql-patches by date

  From Date Subject
Next Message Scott Marlowe 2008-05-12 03:25:54 Re: Making sure \timing is on
Previous Message Francisco Reyes 2008-05-12 02:43:19 Re: Making sure \timing is on