Address issues in decoding data from the database
This patch was authored and released by @gwynne.
Basically this just cleans up PostgresDataDecoder
quite a bit, along with the PostgresKit
unit tests, such as they are. It's difficult to say whether this will have any performance impact (probably not).