[HACKERS] Scan Direction not part of ScanState?

2005-10-11 Thread Martijn van Oosterhout
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

Re: [HACKERS] Scan Direction not part of ScanState?

2005-10-11 Thread Tom Lane
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.