forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit67fc4c9
committed
Make parallel nbtree index scans use an LWLock.
Teach parallel nbtree index scans to use an LWLock (not a spinlock) toprotect the scan's shared descriptor state.Preparation for an upcoming patch that will add skip scan optimizationsto nbtree. That patch will create the need to occasionally allocatememory while the scan descriptor is locked, while copying datums thatwere serialized by another backend.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Matthias van de Meent <boekewurm+postgres@gmail.com>Discussion:https://postgr.es/m/CAH2-Wz=PKR6rB7qbx+Vnd7eqeB5VTcrW=iJvAsTsKbdG+kW_UA@mail.gmail.com1 parent8021c77 commit67fc4c9
File tree
5 files changed
+18
-14
lines changed- src
- backend
- access/nbtree
- storage/lmgr
- utils/activity
- include/storage
5 files changed
+18
-14
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1565 | 1565 |
| |
1566 | 1566 |
| |
1567 | 1567 |
| |
1568 |
| - | |
| 1568 | + | |
1569 | 1569 |
| |
1570 | 1570 |
| |
1571 | 1571 |
| |
|
Lines changed: 14 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| |||
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 |
| - | |
| 557 | + | |
| 558 | + | |
558 | 559 |
| |
559 | 560 |
| |
560 | 561 |
| |
| |||
576 | 577 |
| |
577 | 578 |
| |
578 | 579 |
| |
579 |
| - | |
| 580 | + | |
580 | 581 |
| |
581 | 582 |
| |
582 | 583 |
| |
583 |
| - | |
| 584 | + | |
584 | 585 |
| |
585 | 586 |
| |
586 | 587 |
| |
587 |
| - | |
| 588 | + | |
588 | 589 |
| |
589 | 590 |
| |
590 | 591 |
| |
| |||
655 | 656 |
| |
656 | 657 |
| |
657 | 658 |
| |
658 |
| - | |
| 659 | + | |
659 | 660 |
| |
660 | 661 |
| |
661 | 662 |
| |
| |||
717 | 718 |
| |
718 | 719 |
| |
719 | 720 |
| |
720 |
| - | |
| 721 | + | |
721 | 722 |
| |
722 | 723 |
| |
723 | 724 |
| |
| |||
761 | 762 |
| |
762 | 763 |
| |
763 | 764 |
| |
764 |
| - | |
| 765 | + | |
765 | 766 |
| |
766 | 767 |
| |
767 | 768 |
| |
768 |
| - | |
| 769 | + | |
769 | 770 |
| |
770 | 771 |
| |
771 | 772 |
| |
| |||
804 | 805 |
| |
805 | 806 |
| |
806 | 807 |
| |
807 |
| - | |
| 808 | + | |
808 | 809 |
| |
809 | 810 |
| |
810 | 811 |
| |
811 | 812 |
| |
812 | 813 |
| |
813 | 814 |
| |
814 |
| - | |
| 815 | + | |
815 | 816 |
| |
816 | 817 |
| |
817 | 818 |
| |
| |||
838 | 839 |
| |
839 | 840 |
| |
840 | 841 |
| |
841 |
| - | |
| 842 | + | |
842 | 843 |
| |
843 | 844 |
| |
844 | 845 |
| |
| |||
854 | 855 |
| |
855 | 856 |
| |
856 | 857 |
| |
857 |
| - | |
| 858 | + | |
858 | 859 |
| |
859 | 860 |
| |
860 | 861 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
| 156 | + | |
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
| 374 | + | |
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
| 197 | + | |
197 | 198 |
| |
198 | 199 |
| |
199 | 200 |
| |
|
0 commit comments
Comments
(0)