Re: timing information for switching database

2022-08-21 Thread Junwang Zhao
*\timing* set the pset.timing flag of the global psql options, and use it in the client side to indicate whether to print the query time or not. There are two places using it, *SendQuery* and *PSQLexecWatch*, you may check these functions and add the *timing* logic in function *exec_command_connec

Re: timing information for switching database

2022-08-21 Thread Pavel Stehule
Hi ne 21. 8. 2022 v 14:41 odesílatel Zhihong Yu napsal: > Hi, > In sqlsh, I issued `\timing on`. > > I don't see timing information displayed for `\c database`. > > Does someone know how I can obtain such information ? > you cannot do it in psql you can write custom application and you can me

timing information for switching database

2022-08-21 Thread Zhihong Yu
Hi, In sqlsh, I issued `\timing on`. I don't see timing information displayed for `\c database`. Does someone know how I can obtain such information ? Thanks