forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3424bff
committed
Prevent index-only scans from returning wrong answers under Hot Standby.
The alternative of disallowing index-only scans in HS operation wasdiscussed, but the consensus was that it was better to treat markinga page all-visible as a recovery conflict for snapshots that could stillfail to see XIDs on that page. We may in the future try to soften this,so that we simply force index scans to do heap fetches in cases wherethis may be an issue, rather than throwing a hard conflict.1 parent92df220 commit3424bff
File tree
7 files changed
+36
-11
lines changed- src
- backend
- access/heap
- commands
- include/access
7 files changed
+36
-11
lines changedLines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4368 | 4368 |
| |
4369 | 4369 |
| |
4370 | 4370 |
| |
4371 |
| - | |
| 4371 | + | |
| 4372 | + | |
4372 | 4373 |
| |
4373 | 4374 |
| |
4374 | 4375 |
| |
4375 | 4376 |
| |
4376 | 4377 |
| |
4377 | 4378 |
| |
4378 | 4379 |
| |
| 4380 | + | |
4379 | 4381 |
| |
4380 | 4382 |
| |
4381 | 4383 |
| |
| |||
4708 | 4710 |
| |
4709 | 4711 |
| |
4710 | 4712 |
| |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
4711 | 4724 |
| |
4712 | 4725 |
| |
4713 | 4726 |
| |
| |||
4760 | 4773 |
| |
4761 | 4774 |
| |
4762 | 4775 |
| |
4763 |
| - | |
| 4776 | + | |
| 4777 | + | |
4764 | 4778 |
| |
4765 | 4779 |
| |
4766 | 4780 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 |
| - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
233 | 235 |
| |
234 | 236 |
| |
235 | 237 |
| |
236 | 238 |
| |
237 | 239 |
| |
238 | 240 |
| |
239 | 241 |
| |
240 |
| - | |
| 242 | + | |
241 | 243 |
| |
242 | 244 |
| |
243 | 245 |
| |
| |||
269 | 271 |
| |
270 | 272 |
| |
271 | 273 |
| |
272 |
| - | |
| 274 | + | |
| 275 | + | |
273 | 276 |
| |
274 | 277 |
| |
275 | 278 |
| |
|
Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
| 451 | + | |
451 | 452 |
| |
452 | 453 |
| |
453 | 454 |
| |
| |||
627 | 628 |
| |
628 | 629 |
| |
629 | 630 |
| |
630 |
| - | |
| 631 | + | |
| 632 | + | |
631 | 633 |
| |
632 | 634 |
| |
633 | 635 |
| |
| |||
759 | 761 |
| |
760 | 762 |
| |
761 | 763 |
| |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
762 | 768 |
| |
763 | 769 |
| |
764 | 770 |
| |
| |||
853 | 859 |
| |
854 | 860 |
| |
855 | 861 |
| |
856 |
| - | |
| 862 | + | |
| 863 | + | |
857 | 864 |
| |
858 | 865 |
| |
859 | 866 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
144 |
| - | |
| 144 | + | |
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
788 | 788 |
| |
789 | 789 |
| |
790 | 790 |
| |
| 791 | + | |
791 | 792 |
| |
792 | 793 |
| |
793 |
| - | |
| 794 | + | |
794 | 795 |
| |
795 | 796 |
| |
796 | 797 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
0 commit comments
Comments
(0)