Hi,
Thanks for the report. I have proposed a fix to this inpgsql-hackers[1]. Please take a look.
Regards,Nitin MotianiGoogle
[1] https://www.postgresql.org/message-id/CAH5HC96YCzOy+9JZLQ4n0sMchVnharTOXrr4sbYuh=_d+ffjAA@mail.gmail.com