*** src/backend/access/index/indexam.c	2007-09-18 11:59:26.000000000 +0530
--- src/backend/access/index/indexam.c	2007-09-18 11:52:36.000000000 +0530
***************
*** 531,536 ****
--- 531,537 ----
  			ItemPointerSetOffsetNumber(tid, offnum);
  			heapTuple->t_data = (HeapTupleHeader) PageGetItem(dp, lp);
  			heapTuple->t_len = ItemIdGetLength(lp);
+ 			heapTuple->t_tableOid = RelationGetRelid(scan->heapRelation);
  			ctid = &heapTuple->t_data->t_ctid;
  
  			/*
