OP here. Elephantshark builds on top of some simple Postgres proxy scripts in Ruby I’ve been using for a while.
Reply on news.ycombinator.com