Source files for a PGCon 2014 talk about the Postgres wire protocol. To build, run make. You need LaTeX with the beamer class, graphviz and mscgen installed.