From: | Rodrigo Ramírez Norambuena <decipher(dot)hk(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | [PATCH] Connection time for \conninfo |
Date: | 2019-09-04 02:13:57 |
Message-ID: | CAE9kuxOTSXfW6S7AcosLhSgKsQSHekq4Ns=RQPFivmdSo6YggA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
0001-Add-to-the-conninfo-for-time-of-current-connection.patch | text/x-patch | 2.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-09-04 03:06:04 | Re: [PATCH] Connection time for \conninfo |
Previous Message | Stephen Frost | 2019-09-04 02:11:34 | Re: Proposal: roll pg_stat_statements into core |