- Notifications
You must be signed in to change notification settings - Fork28
Commit61dd418
committed
Keep rs_startblock the same during heap_rescan, so that a rescan of a SeqScan
node starts from the same place as the first scan did. This avoids surprisingbehavior of scrollable and WITH HOLD cursors, as seen in Mark Kirkwood's bugreport of yesterday.It's not entirely clear whether a rescan should be forced to drop out of thesyncscan mode, but for the moment I left the code behaving the same on thatpoint. Any change there would only be a performance and not a correctnessissue, anyway.Back-patch to 8.3, since the unstable behavior was created by the syncscanpatch.1 parent2ef8c1a commit61dd418
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
147 | 156 |
| |
148 | 157 |
| |
149 | 158 |
| |
| |||
1218 | 1227 |
| |
1219 | 1228 |
| |
1220 | 1229 |
| |
1221 |
| - | |
| 1230 | + | |
1222 | 1231 |
| |
1223 | 1232 |
| |
1224 | 1233 |
| |
| |||
1240 | 1249 |
| |
1241 | 1250 |
| |
1242 | 1251 |
| |
1243 |
| - | |
| 1252 | + | |
1244 | 1253 |
| |
1245 | 1254 |
| |
1246 | 1255 |
| |
|
0 commit comments
Comments
(0)