forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit255a925
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 parent17b8887 commit255a925
2 files changed
+10
-3
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
247 |
| - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
248 | 250 |
| |
249 |
| - | |
250 | 251 |
| |
251 | 252 |
| |
252 | 253 |
| |
| |||
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
| 294 | + | |
| 295 | + | |
293 | 296 |
| |
294 | 297 |
| |
295 | 298 |
| |
| |||
352 | 355 |
| |
353 | 356 |
| |
354 | 357 |
| |
| 358 | + | |
| 359 | + | |
355 | 360 |
| |
356 | 361 |
| |
357 | 362 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 |
| |
144 | 146 |
| |
145 | 147 |
| |
|
0 commit comments
Comments
(0)