Hi,
I notice that the IndexScan code looks up the scan direction each
invocation by looking up the direction of the plan. Does this mean the
direction can change in the middle of a scan? Is this how MOVE
FORWARD/BACKWARD works?
I've traced the code and it *appears* this is what's happening, but
Martijn van Oosterhout kleptog@svana.org writes:
I notice that the IndexScan code looks up the scan direction each
invocation by looking up the direction of the plan. Does this mean the
direction can change in the middle of a scan? Is this how MOVE
FORWARD/BACKWARD works?
Yes, yes.