• T
    Keep rs_startblock the same during heap_rescan, so that a rescan of a SeqScan · 61dd4185
    Tom Lane 提交于
    node starts from the same place as the first scan did.  This avoids surprising
    behavior of scrollable and WITH HOLD cursors, as seen in Mark Kirkwood's bug
    report of yesterday.
    
    It's not entirely clear whether a rescan should be forced to drop out of the
    syncscan mode, but for the moment I left the code behaving the same on that
    point.  Any change there would only be a performance and not a correctness
    issue, anyway.
    
    Back-patch to 8.3, since the unstable behavior was created by the syncscan
    patch.
    61dd4185
heapam.c 140.7 KB