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.
regards, tom lane