It seems like something is missing. Is this table partitioned? How long agowas migration done? Has vacuum freeze and analyze of tables been done? Wasindex created after populating data or reindexed after perhaps? Whatversion are you using?