Hi,
This is the same bug as BUG #19732. That thread has a patch.
https://postgr.es/m/19732-d4eed889e3021ef8@postgresql.org
Thanks,shihao zhong