forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite3fcca0
committed
Revert changes in HOT handling of BRIN indexes
This reverts commits5753d4e andfe60b67 that modified HOT toignore BRIN indexes. The commit message for5753d4e claims that: When determining whether an index update may be skipped by using HOT, we can ignore attributes indexed only by BRIN indexes. There are no index pointers to individual tuples in BRIN, and the page range summary will be updated anyway as it relies on visibility info.This is partially incorrect - it's true BRIN indexes don't point toindividual tuples, so HOT chains are not an issue, but the visibitlityinfo is not sufficient to keep the index up to date. This can easilyresult in corrupted indexes, as demonstrated in the hackers thread.This does not mean relaxing the HOT restrictions for BRIN is a lostcause, but it needs to handle the two aspects (allowing HOT chains andupdating the page range summaries) as separate. But that requires amajor changes, and it's too late for that in the current dev cycle.Reported-by: Tomas VondraDiscussion:https://postgr.es/m/05ebcb44-f383-86e3-4f31-0a97a55634cf@enterprisedb.com1 parent664da2a commite3fcca0
File tree
17 files changed
+27
-502
lines changed- doc/src/sgml
- src
- backend
- access
- brin
- gin
- gist
- hash
- heap
- nbtree
- spgist
- utils/cache
- include
- access
- utils
- test
- modules/dummy_index_am
- regress
- expected
- sql
17 files changed
+27
-502
lines changedLines changed: 0 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
130 |
| - | |
131 | 129 |
| |
132 | 130 |
| |
133 | 131 |
| |
| |||
248 | 246 |
| |
249 | 247 |
| |
250 | 248 |
| |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 | 249 |
| |
261 | 250 |
| |
262 | 251 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 | 111 |
| |
113 | 112 |
| |
114 | 113 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
60 | 59 |
| |
61 | 60 |
| |
62 | 61 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
82 | 81 |
| |
83 | 82 |
| |
84 | 83 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3190 | 3190 |
| |
3191 | 3191 |
| |
3192 | 3192 |
| |
3193 |
| - | |
| 3193 | + | |
3194 | 3194 |
| |
3195 | 3195 |
| |
3196 | 3196 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
118 | 117 |
| |
119 | 118 |
| |
120 | 119 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
|
Lines changed: 23 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2439 | 2439 |
| |
2440 | 2440 |
| |
2441 | 2441 |
| |
| 2442 | + | |
2442 | 2443 |
| |
2443 | 2444 |
| |
2444 | 2445 |
| |
2445 |
| - | |
2446 | 2446 |
| |
2447 | 2447 |
| |
2448 | 2448 |
| |
| |||
5104 | 5104 |
| |
5105 | 5105 |
| |
5106 | 5106 |
| |
| 5107 | + | |
5107 | 5108 |
| |
5108 | 5109 |
| |
5109 | 5110 |
| |
5110 |
| - | |
5111 | 5111 |
| |
5112 | 5112 |
| |
5113 | 5113 |
| |
| |||
5116 | 5116 |
| |
5117 | 5117 |
| |
5118 | 5118 |
| |
5119 |
| - | |
| 5119 | + | |
5120 | 5120 |
| |
5121 | 5121 |
| |
5122 | 5122 |
| |
| 5123 | + | |
| 5124 | + | |
5123 | 5125 |
| |
5124 | 5126 |
| |
5125 | 5127 |
| |
5126 | 5128 |
| |
5127 | 5129 |
| |
5128 | 5130 |
| |
5129 |
| - | |
5130 |
| - | |
5131 | 5131 |
| |
5132 | 5132 |
| |
5133 | 5133 |
| |
| |||
5158 | 5158 |
| |
5159 | 5159 |
| |
5160 | 5160 |
| |
5161 |
| - | |
| 5161 | + | |
5162 | 5162 |
| |
5163 | 5163 |
| |
5164 | 5164 |
| |
| |||
5167 | 5167 |
| |
5168 | 5168 |
| |
5169 | 5169 |
| |
| 5170 | + | |
5170 | 5171 |
| |
5171 | 5172 |
| |
5172 | 5173 |
| |
5173 |
| - | |
5174 | 5174 |
| |
5175 | 5175 |
| |
5176 | 5176 |
| |
| |||
5235 | 5235 |
| |
5236 | 5236 |
| |
5237 | 5237 |
| |
5238 |
| - | |
5239 |
| - | |
5240 |
| - | |
| 5238 | + | |
| 5239 | + | |
5241 | 5240 |
| |
5242 | 5241 |
| |
5243 | 5242 |
| |
| |||
5254 | 5253 |
| |
5255 | 5254 |
| |
5256 | 5255 |
| |
5257 |
| - | |
5258 |
| - | |
| 5256 | + | |
5259 | 5257 |
| |
5260 |
| - | |
5261 |
| - | |
5262 |
| - | |
5263 |
| - | |
5264 |
| - | |
5265 |
| - | |
| 5258 | + | |
| 5259 | + | |
5266 | 5260 |
| |
5267 | 5261 |
| |
5268 | 5262 |
| |
| |||
5290 | 5284 |
| |
5291 | 5285 |
| |
5292 | 5286 |
| |
5293 |
| - | |
| 5287 | + | |
5294 | 5288 |
| |
5295 | 5289 |
| |
5296 | 5290 |
| |
5297 | 5291 |
| |
5298 | 5292 |
| |
| 5293 | + | |
| 5294 | + | |
5299 | 5295 |
| |
5300 | 5296 |
| |
5301 | 5297 |
| |
5302 | 5298 |
| |
5303 | 5299 |
| |
5304 | 5300 |
| |
5305 |
| - | |
5306 |
| - | |
5307 | 5301 |
| |
5308 | 5302 |
| |
5309 | 5303 |
| |
5310 |
| - | |
5311 |
| - | |
5312 |
| - | |
| 5304 | + | |
| 5305 | + | |
| 5306 | + | |
| 5307 | + | |
5313 | 5308 |
| |
5314 | 5309 |
| |
5315 | 5310 |
| |
5316 | 5311 |
| |
5317 | 5312 |
| |
5318 |
| - | |
5319 |
| - | |
| 5313 | + | |
5320 | 5314 |
| |
5321 | 5315 |
| |
5322 | 5316 |
| |
5323 | 5317 |
| |
5324 | 5318 |
| |
| 5319 | + | |
| 5320 | + | |
5325 | 5321 |
| |
5326 | 5322 |
| |
5327 | 5323 |
| |
5328 | 5324 |
| |
5329 | 5325 |
| |
5330 | 5326 |
| |
5331 |
| - | |
5332 |
| - | |
5333 | 5327 |
| |
5334 | 5328 |
| |
5335 | 5329 |
| |
| |||
6250 | 6244 |
| |
6251 | 6245 |
| |
6252 | 6246 |
| |
6253 |
| - | |
| 6247 | + | |
6254 | 6248 |
| |
6255 | 6249 |
| |
6256 | 6250 |
| |
6257 |
| - | |
6258 | 6251 |
| |
6259 | 6252 |
| |
6260 | 6253 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
247 |
| - | |
248 |
| - | |
249 | 247 |
| |
250 | 248 |
| |
251 | 249 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
158 |
| - | |
| 158 | + | |
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
163 | 162 |
| |
164 | 163 |
| |
165 | 164 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 |
| - | |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
301 |
| - | |
302 | 301 |
| |
303 | 302 |
| |
304 | 303 |
| |
|
Lines changed: 0 additions & 58 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
567 | 567 |
| |
568 | 568 |
| |
569 | 569 |
| |
570 |
| - | |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 |
| - | |
579 |
| - | |
580 |
| - | |
581 |
| - | |
582 |
| - | |
583 |
| - | |
584 |
| - | |
585 |
| - | |
586 |
| - | |
587 |
| - | |
588 |
| - | |
589 |
| - | |
590 |
| - | |
591 |
| - | |
592 |
| - | |
593 |
| - | |
594 |
| - | |
595 |
| - | |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 |
| - | |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 |
| - | |
627 |
| - |
0 commit comments
Comments
(0)