Base interface for all messages sent to the PostgreSQL backend.
Writes the entire message frame to the stream (including type marker and length).