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/