- Notifications
You must be signed in to change notification settings - Fork5
Commita343e22
committed
Revert no-op changes to BufferGetPage()
The reverted changes were intended to force a choice of whether anynewly-added BufferGetPage() calls needed to be accompanied by atest of the snapshot age, to support the "snapshot too old"feature. Such an accompanying test is needed in about 7% of thecases, where the page is being used as part of a scan rather thanpositioning for other purposes (such as DML or vacuuming). Theadditional effort required for back-patching, and the doubt whetherthe intended benefit would really be there, have indicated it isbest just to rely on developers to do the right thing based oncomments and existing usage, as we do with many other conventions.This change should have little or no effect on generated executablecode.Motivated by the back-patching pain of Tom Lane and Robert Haas1 parent4db0d2d commita343e22
File tree
65 files changed
+550
-736
lines changed- contrib
- bloom
- pageinspect
- pg_visibility
- pgstattuple
- src
- backend
- access
- brin
- gin
- gist
- hash
- heap
- nbtree
- spgist
- transam
- catalog
- commands
- executor
- storage
- buffer
- freespace
- include/storage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+550
-736
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
207 |
| - | |
208 |
| - | |
| 207 | + | |
209 | 208 |
| |
210 | 209 |
| |
211 | 210 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
142 |
| - | |
| 141 | + | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
|
Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
147 |
| - | |
| 146 | + | |
148 | 147 |
| |
149 | 148 |
| |
150 | 149 |
| |
| |||
317 | 316 |
| |
318 | 317 |
| |
319 | 318 |
| |
320 |
| - | |
321 |
| - | |
| 319 | + | |
322 | 320 |
| |
323 | 321 |
| |
324 | 322 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
|
Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
320 |
| - | |
321 |
| - | |
322 |
| - | |
| 320 | + | |
323 | 321 |
| |
324 | 322 |
| |
325 | 323 |
| |
| |||
449 | 447 |
| |
450 | 448 |
| |
451 | 449 |
| |
452 |
| - | |
| 450 | + | |
453 | 451 |
| |
454 | 452 |
| |
455 | 453 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 150 | + | |
153 | 151 |
| |
154 | 152 |
| |
155 | 153 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 |
| - | |
| 336 | + | |
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
103 |
| - | |
| 103 | + | |
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
| |||
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
214 |
| - | |
| 214 | + | |
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
| |||
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
402 |
| - | |
| 402 | + | |
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
|
Lines changed: 5 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
324 |
| - | |
| 323 | + | |
325 | 324 |
| |
326 | 325 |
| |
327 | 326 |
| |
| |||
334 | 333 |
| |
335 | 334 |
| |
336 | 335 |
| |
337 |
| - | |
338 |
| - | |
| 336 | + | |
339 | 337 |
| |
340 | 338 |
| |
341 | 339 |
| |
| |||
360 | 358 |
| |
361 | 359 |
| |
362 | 360 |
| |
363 |
| - | |
| 361 | + | |
364 | 362 |
| |
365 | 363 |
| |
366 | 364 |
| |
| |||
404 | 402 |
| |
405 | 403 |
| |
406 | 404 |
| |
407 |
| - | |
| 405 | + | |
408 | 406 |
| |
409 | 407 |
| |
410 | 408 |
| |
| |||
449 | 447 |
| |
450 | 448 |
| |
451 | 449 |
| |
452 |
| - | |
| 450 | + | |
453 | 451 |
| |
454 | 452 |
| |
455 | 453 |
| |
|
Lines changed: 5 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
211 |
| - | |
212 |
| - | |
| 211 | + | |
213 | 212 |
| |
214 | 213 |
| |
215 | 214 |
| |
| |||
620 | 619 |
| |
621 | 620 |
| |
622 | 621 |
| |
623 |
| - | |
624 |
| - | |
| 622 | + | |
625 | 623 |
| |
626 | 624 |
| |
627 | 625 |
| |
| |||
640 | 638 |
| |
641 | 639 |
| |
642 | 640 |
| |
643 |
| - | |
| 641 | + | |
644 | 642 |
| |
645 | 643 |
| |
646 | 644 |
| |
| |||
690 | 688 |
| |
691 | 689 |
| |
692 | 690 |
| |
693 |
| - | |
694 |
| - | |
695 |
| - | |
| 691 | + | |
696 | 692 |
| |
697 | 693 |
| |
698 | 694 |
| |
| |||
947 | 943 |
| |
948 | 944 |
| |
949 | 945 |
| |
950 |
| - | |
951 |
| - | |
| 946 | + | |
952 | 947 |
| |
953 | 948 |
| |
954 | 949 |
| |
|
0 commit comments
Comments
(0)