I also found one other discussion which has similar issues addressed:
http://postgresql.1045698.n5.nabble.com/Bogus-nestloop-rows-estimate-in-8-4-7-td5710254.html
--Amit Langote