*** pgsql/src/backend/access/index/indexam.c 2009/07/29 20:56:18 1.115 --- pgsql/src/backend/access/index/indexam.c 2009/12/19 01:32:32 1.116 *************** *** 8,14 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.114 2009/06/11 14:48:54 momjian Exp $ * * INTERFACE ROUTINES * index_open - open an index relation by relation OID --- 8,14 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.115 2009/07/29 20:56:18 tgl Exp $ * * INTERFACE ROUTINES * index_open - open an index relation by relation OID *************** index_getnext(IndexScanDesc scan, ScanDi *** 455,463 **** /* * If we scanned a whole HOT chain and found only dead tuples, ! * tell index AM to kill its entry for that TID. */ ! scan->kill_prior_tuple = scan->xs_hot_dead; /* * The AM's gettuple proc finds the next index entry matching the --- 455,466 ---- /* * If we scanned a whole HOT chain and found only dead tuples, ! * tell index AM to kill its entry for that TID. We do not do ! * this when in recovery because it may violate MVCC to do so. ! * see comments in RelationGetIndexScan(). */ ! if (!scan->xactStartedInRecovery) ! scan->kill_prior_tuple = scan->xs_hot_dead; /* * The AM's gettuple proc finds the next index entry matching the