diff options
| author | Tom Lane | 2014-11-21 01:20:54 +0000 |
|---|---|---|
| committer | Tom Lane | 2014-11-21 01:20:54 +0000 |
| commit | adbfab119b308a7e0e6b1305de9be222cfd5c85b (patch) | |
| tree | ed4697f645d855d8d7c7ffef73eecd3d8ba05133 /src/include/access | |
| parent | a34fa8ee7cc757671632dc4dcae4f21e8f2e2357 (diff) | |
Remove dead code supporting mark/restore in SeqScan, TidScan, ValuesScan.
There seems no prospect that any of this will ever be useful, and indeed
it's questionable whether some of it would work if it ever got called;
it's certainly not been exercised in a very long time, if ever. So let's
get rid of it, and make the comments about mark/restore in execAmi.c less
wishy-washy.
The mark/restore support for Result nodes is also currently dead code,
but that's due to planner limitations not because it's impossible that
it could be useful. So I left it in.
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/heapam.h | 3 | ||||
| -rw-r--r-- | src/include/access/relscan.h | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index 9cd66a1b0f9..f43b4829e9b 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -161,9 +161,6 @@ extern void simple_heap_delete(Relation relation, ItemPointer tid); extern void simple_heap_update(Relation relation, ItemPointer otid, HeapTuple tup); -extern void heap_markpos(HeapScanDesc scan); -extern void heap_restrpos(HeapScanDesc scan); - extern void heap_sync(Relation relation); /* in heap/pruneheap.c */ diff --git a/src/include/access/relscan.h b/src/include/access/relscan.h index 8beb1be8829..f2c7ca1673a 100644 --- a/src/include/access/relscan.h +++ b/src/include/access/relscan.h @@ -48,11 +48,9 @@ typedef struct HeapScanDescData BlockNumber rs_cblock; /* current block # in scan, if any */ Buffer rs_cbuf; /* current buffer in scan, if any */ /* NB: if rs_cbuf is not InvalidBuffer, we hold a pin on that buffer */ - ItemPointerData rs_mctid; /* marked scan position, if any */ /* these fields only used in page-at-a-time mode and for bitmap scans */ int rs_cindex; /* current tuple's index in vistuples */ - int rs_mindex; /* marked tuple's saved index */ int rs_ntuples; /* number of visible tuples on page */ OffsetNumber rs_vistuples[MaxHeapTuplesPerPage]; /* their offsets */ } HeapScanDescData; |
