On Tue, Oct 29, 2013 at 11:26 AM, Nigel Heron <nheron@querymetrics.com> wrote: >> >> So, for now, the counters only track sockets created from an inbound >> (client to server) connection. > > here's v3 of the patch (rebase and cleanup). >
Hi, here's v4 of the patch. I added documentation and a new global view called "pg_stat_socket" (includes bytes_sent, bytes_received and stats_reset time)