As per summary and per upstream bug. I'm not sure how to handle this sincerely.. maybe apply the patch on that bug conditionally if the installed version of libpq is 8.1? Honestly not sure, but I've masked pgsql locally because of this.
The patch which they provide working correctly.
Should work w/ recent versions; reopen if not.