Change WorkTableScan to not support backward scan. The apparent support

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a80a12247a99f0bccf47bed5786f28a35fc80845
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-10-28T17:13:51Z
Releases: 8.4.0
Change WorkTableScan to not support backward scan.  The apparent support
didn't actually work, because nodeRecursiveunion.c creates the underlying
tuplestore with backward scan disabled; which is a decision that we shouldn't
reverse because of performance cost.  We could imagine adding signaling from
WorkTableScan to RecursiveUnion about whether backward scan is needed ...
but in practice it'd be a waste of effort, because there simply isn't any
current or plausible future scenario where WorkTableScan would be called on
to scan backward.  So just dike out the code that claims to support it.

Files

PathChange+/−
src/backend/executor/execAmi.c modified +1 −2
src/backend/executor/nodeWorktablescan.c modified +12 −7