[PATCH] Connection time for \conninfo - Mailing list pgsql-hackers

From Rodrigo Ramírez Norambuena
Subject [PATCH] Connection time for \conninfo
Date
Msg-id CAE9kuxOTSXfW6S7AcosLhSgKsQSHekq4Ns=RQPFivmdSo6YggA@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] Connection time for \conninfo
List pgsql-hackers
I've work in the a little patch to add into the \conninfo of psql
command the connection time  against a server backend

Maybe could add after, the precheck to if the connection is alive.
I've take first look to the pqPacketSend, my idea is send a ECHO
packet over to the database connection. If someone has a better idea
it would be great to know.

Regards!
--
Rodrigo Ramírez Norambuena
http://www.rodrigoramirez.com/

Attachment

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Proposal: roll pg_stat_statements into core
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH] Connection time for \conninfo