PGSpy 1.0.3 
Jeff Trout <jeff@jefftrout.com>
released under BSD License. 

This utility uses libpcap to watch for PostgreSQL traffic and can do one of
two things: show you the queries being run and how long it took until they
returned their first row of data or how many queries per second are being
issued. 

I hate autoconf, so you'll need to tweak the Makefile.
The big things are the location of your libpcap includes and wether you
want pgspy to statically link in libpcap or now (I do because my production
machines do not have libpcap installed).

there are probably bugs and whatnot in it.

good luck!

