Pgmockproxy is a PostgreSQL proxy that logs the messages back and forth between
the PostgreSQL client and server. This can aid in building a mocking script by
running commands against a real server to observe the results. It can also be
used to debug applications that speak the PostgreSQL wire protocol without
needing to use a tool like Wireshark.