Profile a db connection time?

Поиск
Список
Период
Сортировка
От Vijaykumar Jain
Тема Profile a db connection time?
Дата
Msg-id CAE7uO5jOgpBHRfhZqL10x9V3ipTokPsfcj-UdXX0O6Mvrs8E2g@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Sorry if this is silly , but I have series of network outages and wanted to understand if I can profile a psql connection to various parts of it initialling a connection 
Like when using hostname, resolving dns
the time to actually establish a db connection and then the time to parse the query and run the query and time to return the results
I know a lot of the answers could be
Why not do a dns check before the connection,
run vacuum analyse to check only db time  and do not return any row, and then run with returning the rows and do a diff etc.
Am I asking something that makes sense?
Like google chrome does for page loading etc ? 

--

Regards,
Vijay

В списке pgsql-general по дате отправления:

Предыдущее
От: Igal Sapir
Дата:
Сообщение: Re: Case Insensitive Comparison with Postgres 12
Следующее
От: Julie Nishimura
Дата:
Сообщение: how can I get non-truncated version of running sql?