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/backend/executor/nodeTidscan.c | |
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/backend/executor/nodeTidscan.c')
-rw-r--r-- | src/backend/executor/nodeTidscan.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/backend/executor/nodeTidscan.c b/src/backend/executor/nodeTidscan.c index 3560f8440ab..1b2454d49de 100644 --- a/src/backend/executor/nodeTidscan.c +++ b/src/backend/executor/nodeTidscan.c @@ -19,8 +19,6 @@ * ExecInitTidScan creates and initializes state info. * ExecReScanTidScan rescans the tid relation. * ExecEndTidScan releases all storage. - * ExecTidMarkPos marks scan position. - * ExecTidRestrPos restores scan position. */ #include "postgres.h" @@ -441,34 +439,6 @@ ExecEndTidScan(TidScanState *node) } /* ---------------------------------------------------------------- - * ExecTidMarkPos - * - * Marks scan position by marking the current tid. - * Returns nothing. - * ---------------------------------------------------------------- - */ -void -ExecTidMarkPos(TidScanState *node) -{ - node->tss_MarkTidPtr = node->tss_TidPtr; -} - -/* ---------------------------------------------------------------- - * ExecTidRestrPos - * - * Restores scan position by restoring the current tid. - * Returns nothing. - * - * XXX Assumes previously marked scan position belongs to current tid - * ---------------------------------------------------------------- - */ -void -ExecTidRestrPos(TidScanState *node) -{ - node->tss_TidPtr = node->tss_MarkTidPtr; -} - -/* ---------------------------------------------------------------- * ExecInitTidScan * * Initializes the tid scan's state information, creates |