From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
Cc: | Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kirk Wolak <wolakk(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, amborodin86(at)gmail(dot)com, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Subject: | Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has) |
Date: | 2023-02-22 18:17:37 |
Message-ID: | 022B754A-0D51-4549-9F9E-DB1CA62353F2@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 22 Feb 2023, at 19:14, Heikki Linnakangas <hlinnaka(at)iki(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2023-02-22 18:19:21 | Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has) |
Previous Message | Heikki Linnakangas | 2023-02-22 18:14:54 | Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has) |