Hi,
PFA patch to fix the issue where node was appended to wrong parent if itsdesired parent is not loaded.RM#1838
--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL Company