How to display query run time in minutes and seconds instead of milliseconds in vsql???
I use vsql on Mac to access Vertica and currently use the /timing setting in my .vsqlrc file to display the time it took to run a query. However, the time is displayed in milliseconds, which is hard to interpret quickly when query runtime is longer. How can the query run time be displayed in minutes and seconds?
Help would be much appreciated!
0
Comments
Hi,
The \TIMING meta-command output is not configurable. Run times are always reported in milliseconds. But I get what you are saying.
Don't forget that vsql can be used as a calculator so you can quickly convert milliseconds to minutes/seconds.
Example:
That run time is now more read able as Hours:Minutes:Seconds.
You can even create your own simple conversion/display function: