Hi,
PFA patch to fix the issue mentioned in RM#1223.
[Additionally, I have fixed variable scope issue in node.js found duringdebugging]
--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL Company