I wrote:
> Richard Guo <guofenglinux@gmail.com> writes:
>> I think correctness should take priority over avoiding pain.
> Yeah. I spent a little time investigating this today, and hope
> to have a patch to propose tomorrow.
Done at
https://www.postgresql.org/message-id/2483812.1754072263%40sss.pgh.pa.us
regards, tom lane