> On 22 Feb 2023, at 19:14, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> How about a new backslash command or psql variable to show how long the previous statement took? Something like:
>
> postgres=# select <unexpectedly slow query>
> ?column?
> ----------
> 123
> (1 row)
>
> postgres=# \time
>
> Time: 14011.975 ms (00:14.012)
>
> This would solve the "I forgot to time something" problem.
I don't have an opinion on adding a prompt option, but I've wanted this
(without realizing this was the format of it) many times.
--
Daniel Gustafsson