Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
Date
Msg-id 2f1c8cb9-6f4d-2a03-d069-c4f9c2b574ab@enterprisedb.com
Whole thread Raw
In response to Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
List pgsql-hackers
On 22.02.23 19:14, Heikki Linnakangas wrote:
> How about a new backslash command or psql variable to show how long the 
> previous statement took? Something like:

If you don't have \timing turned on before the query starts, psql won't 
record what the time was before the query, so you can't compute the run 
time afterwards.  This kind of feature would only work if you always 
take the start time, even if \timing is turned off.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: some namespace.c refactoring
Next
From: Andrew Dunstan
Date:
Subject: Re: buildfarm + meson