Skip site navigation (1) Skip section navigation (2)

Re: \timing on/off

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "pgsql-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: \timing on/off
Date: 2008-06-10 09:24:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
And here is the patch I forgot to attach.

Heikki Linnakangas wrote:
> I started to look at David Fetter's patch to enable "\timing on/off", in 
> addition to toggling the mod with just "\timing".
> I gather that the conclusion of the thread "Making sure \timing is on", 
> starting at: 
> was that we should leave \H and \a alone for now, because it's not clear 
> what "\H off" would do. And \a is already documented as deprecated; we 
> might want to do that for \H as well.
> Here's a patch, based on David's patch, that turns timing into a \pset 
> variable, and makes \timing an alias for \pset timing. This makes 
> \timing behave the same as \x.
> I also moved the help line from the "External" section into 
> "Formatting". I don't think \timing is "external" in the same sense as 
> \cd or \! are. Rather, it controls the output, like \x or \pset options.

   Heikki Linnakangas

Attachment: timing-onoff-1.patch
Description: text/x-diff (10.2 KB)

In response to


pgsql-patches by date

Next:From: Pavel StehuleDate: 2008-06-10 09:39:21
Subject: Re: SQL: table function support
Previous:From: Heikki LinnakangasDate: 2008-06-10 09:22:05
Subject: \timing on/off

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group