Re: timing information for switching database

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Zhihong Yu <zyu(at)yugabyte(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: timing information for switching database
Date: 2022-08-21 12:54:33
Message-ID: CAFj8pRAPSBF5i-JLkx=DccGBT1JG1Q0-4Mv3EnbXoo4uq=oaHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

ne 21. 8. 2022 v 14:41 odesílatel Zhihong Yu <zyu(at)yugabyte(dot)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
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2022-08-21 13:39:21 Re: including pid's for `There are XX other sessions using the database`
Previous Message Zhihong Yu 2022-08-21 12:48:08 timing information for switching database