forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit126552c
committed
Fix race in SSI interaction with gin fast path.
The ginfast.c code previously checked for conflicts in before lockingthe relevant buffer, leaving a window where a RW conflict could bemissed. Re-order.There was also a place where buffer ID and block number were confusedwhile trying to predicate-lock a page, noted by visual inspection.Back-patch to all supported releases. Fixes one more problem discoveredwith the reproducer from bug #17949, in this case when Dmitry triedother index types.Reported-by: Artem Anisimov <artem.anisimov.255@gmail.com>Reported-by: Dmitry Dolgov <9erthalion6@gmail.com>Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/17949-a0f17035294a55e2%40postgresql.org1 parentbcc93a3 commit126552c
2 files changed
+10
-3
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
248 |
| - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
249 | 251 |
| |
250 |
| - | |
251 | 252 |
| |
252 | 253 |
| |
253 | 254 |
| |
| |||
291 | 292 |
| |
292 | 293 |
| |
293 | 294 |
| |
| 295 | + | |
| 296 | + | |
294 | 297 |
| |
295 | 298 |
| |
296 | 299 |
| |
| |||
353 | 356 |
| |
354 | 357 |
| |
355 | 358 |
| |
| 359 | + | |
| 360 | + | |
356 | 361 |
| |
357 | 362 |
| |
358 | 363 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
|
0 commit comments
Comments
(0)