Hi Team,PFA patch containing the fix and the resql test cases.
-- Thanks & Regards,Shubham AgarwalEnterpriseDB Corporation
The Postgres Database Company