Here is a new version of the patch that adds a connection parameter fordisabling it in libpq. I've also done a round of cleanup and added a firstdraft of a real commit message.
-- nathan