diff options
Diffstat (limited to 'src/backend/access/index/indexam.c')
-rw-r--r-- | src/backend/access/index/indexam.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 8c0fbaa6a11..475a613204a 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.59 2002/05/24 18:57:55 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.60 2002/05/24 19:52:43 tgl Exp $ * * INTERFACE ROUTINES * index_open - open an index relation by relation OID @@ -444,6 +444,10 @@ index_getnext(IndexScanDesc scan, ScanDirection direction) &scan->xs_pgstat_info)) break; + /* Skip if no tuple at this location */ + if (heapTuple->t_data == NULL) + continue; /* should we raise an error instead? */ + /* * If we can't see it, maybe no one else can either. Check to see * if the tuple is dead to all transactions. If so, signal the |