Hey, The section 46.4 describes the base data types used in messages. http://www.postgresql.org/docs/9.1/static/protocol-message-types.html
According to section 46.5 http://www.postgresql.org/docs/9.1/static/protocol-message-formats.html there are cases when Int32 can be negative (e.g. see DataRow(B) message description.) Thus, I would like to suggest to change the description of Int(i) from "An n-bit integer in network byte order ..." to "An n-bit signed integer in network byte order ..." -- // Dmitriy.