forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0326635
committed
Fix bug in detecting concurrent page splits in GiST insert
In commit9eb5607, I got the condition on checking for split ordeleted page wrong: I used && instead of ||. The comment correctly said"concurrent split _or_ deletion".As a result, GiST insertion could miss a concurrent split, and insert towrong page. Duncan Sands demonstrated this with a test script that did alot of concurrent inserts.Backpatch to v12, where this was introduced. REINDEX is required to fixindexes that were affected by this bug.Backpatch-through: 12Reported-by: Duncan SandsDiscussion:https://www.postgresql.org/message-id/a9690483-6c6c-3c82-c8ba-dc1a40848f11%40deepbluecap.com1 parent5ad672f commit0326635
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 |
| |
246 | 249 |
| |
247 | 250 |
| |
| |||
857 | 860 |
| |
858 | 861 |
| |
859 | 862 |
| |
860 |
| - | |
| 863 | + | |
861 | 864 |
| |
862 | 865 |
| |
863 | 866 |
| |
|
0 commit comments
Comments
(0)