forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitacb60ed
committed
Make index_set_state_flags() transactional
3c84046 is the original commit that introduced index_set_state_flags(),where the presence of SnapshotNow made necessary the use of an in-placeupdate. SnapshotNow has been removed in813fb03, so there is no actualreasons to not make this operation transactional.As reported by Andrey, it is possible to trigger the assertion of thisroutine expecting no transactional updates when switching the pg_indexstate flags, using a predicate mark as immutable but calling stable orvolatile functions.83158f7 has been around for a couple of months onHEAD now with no issues found related to it, so it looks safe enough fora backpatch.Reported-by: Andrey LepikhovAuthor: Michael PaquierReviewed-by: Anastasia LubennikovaDiscussion:https://postgr.es/m/20200903080440.GA8559@paquier.xyzDiscussion:https://postgr.es/m/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ruBackpatch-through: 9.61 parent2d09448 commitacb60ed
1 file changed
+4
-15
lines changedLines changed: 4 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3375 | 3375 |
| |
3376 | 3376 |
| |
3377 | 3377 |
| |
3378 |
| - | |
3379 |
| - | |
3380 |
| - | |
3381 |
| - | |
| 3378 | + | |
3382 | 3379 |
| |
3383 |
| - | |
| 3380 | + | |
3384 | 3381 |
| |
3385 |
| - | |
3386 |
| - | |
3387 |
| - | |
3388 |
| - | |
3389 |
| - | |
3390 | 3382 |
| |
3391 | 3383 |
| |
3392 | 3384 |
| |
| |||
3395 | 3387 |
| |
3396 | 3388 |
| |
3397 | 3389 |
| |
3398 |
| - | |
3399 |
| - | |
3400 |
| - | |
3401 | 3390 |
| |
3402 | 3391 |
| |
3403 | 3392 |
| |
| |||
3456 | 3445 |
| |
3457 | 3446 |
| |
3458 | 3447 |
| |
3459 |
| - | |
3460 |
| - | |
| 3448 | + | |
| 3449 | + | |
3461 | 3450 |
| |
3462 | 3451 |
| |
3463 | 3452 |
| |
|
0 commit comments
Comments
(0)