Re: timing information for switching database - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: timing information for switching database
Date
Msg-id CAFj8pRAPSBF5i-JLkx=DccGBT1JG1Q0-4Mv3EnbXoo4uq=oaHg@mail.gmail.com
Whole thread Raw
In response to timing information for switching database  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
Hi


ne 21. 8. 2022 v 14:41 odesílatel Zhihong Yu <zyu@yugabyte.com> 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 measure disconnect - connect time

Regards

Pavel

Thanks

pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: timing information for switching database
Next
From: Julien Rouhaud
Date:
Subject: Re: including pid's for `There are XX other sessions using the database`