Hi Atish,
Thanks for the report. I think this is already fixed by the patch I
posted for BUG #19702[1]. With it 'ab=' and 'ab==cd' both raise the same
error as base64, and its tests include this case.
[1]https://postgr.es/m/19702-9ed4a131fcfadb9d@postgresql.org
Thanks,
Shihao