forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4da24f1
committed
Fix two bugs in setting the vm bit of empty pages.
Use a critical section when setting the all-visible flag on an empty page,and WAL-logging it. log_newpage_buffer() contains an assertion that itmust be called inside a critical section, and it's the right thing to dowhen modifying a buffer anyway.Also, the page should be marked dirty before calling log_newpage_buffer(),per the comment in log_newpage_buffer() and src/backend/access/transam/README.Patch by Andres Freund, in response to my report. Backpatch to 9.2, likethe patch that introduced these bugs (a6370fd).1 parentb89cede commit4da24f1
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
650 | 650 |
| |
651 | 651 |
| |
652 | 652 |
| |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
653 | 658 |
| |
654 | 659 |
| |
655 | 660 |
| |
| |||
669 | 674 |
| |
670 | 675 |
| |
671 | 676 |
| |
672 |
| - | |
673 | 677 |
| |
674 | 678 |
| |
| 679 | + | |
675 | 680 |
| |
676 | 681 |
| |
677 | 682 |
| |
|
0 commit comments
Comments
(0)