While going through the code I noticed that the nTapes member inSharedSort is unused. This is just initialized with nworkers butnever used. The attached patch removes this variable.
-- Regards,Dilip KumarEnterpriseDB: http://www.enterprisedb.com