I made an entry in the commitfest[1], so that the patches will get a
chance to run on all the platforms.
Attaching v4 patch set i.e. 0001 - fix, 0002 - test case.
[1] - https://commitfest.postgresql.org/32/2944/
With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com