- Notifications
You must be signed in to change notification settings - Fork5
Commit25bf7f8
committed
Fix possible failures when a tuplestore switches from in-memory to on-disk
mode while callers hold pointers to in-memory tuples. I reported this forthe case of nodeWindowAgg's primary scan tuple, but inspection of the codeshows that all of the calls in nodeWindowAgg and nodeCtescan are at risk.For the moment, fix it with a rather brute-force approach of copyingwhenever one of the at-risk callers requests a tuple. Later we mightthink of some sort of reference-count approach to reduce tuple copying.1 parenta95307b commit25bf7f8
File tree
10 files changed
+53
-25
lines changed- src
- backend
- executor
- tcop
- utils/sort
- include/utils
10 files changed
+53
-25
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1385 | 1385 |
| |
1386 | 1386 |
| |
1387 | 1387 |
| |
1388 |
| - | |
| 1388 | + | |
1389 | 1389 |
| |
1390 | 1390 |
| |
1391 | 1391 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
736 | 736 |
| |
737 | 737 |
| |
738 | 738 |
| |
739 |
| - | |
| 739 | + | |
740 | 740 |
| |
741 | 741 |
| |
742 | 742 |
| |
| |||
822 | 822 |
| |
823 | 823 |
| |
824 | 824 |
| |
825 |
| - | |
| 825 | + | |
826 | 826 |
| |
827 | 827 |
| |
828 | 828 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 |
| |
75 | 79 |
| |
76 | 80 |
| |
77 |
| - | |
| 81 | + | |
78 | 82 |
| |
79 | 83 |
| |
80 | 84 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| 77 | + | |
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
|
Lines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
483 |
| - | |
| 483 | + | |
| 484 | + | |
484 | 485 |
| |
485 | 486 |
| |
486 | 487 |
| |
| |||
1001 | 1002 |
| |
1002 | 1003 |
| |
1003 | 1004 |
| |
1004 |
| - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
1005 | 1008 |
| |
1006 | 1009 |
| |
1007 | 1010 |
| |
1008 | 1011 |
| |
1009 |
| - | |
| 1012 | + | |
1010 | 1013 |
| |
1011 | 1014 |
| |
1012 | 1015 |
| |
| |||
1589 | 1592 |
| |
1590 | 1593 |
| |
1591 | 1594 |
| |
1592 |
| - | |
| 1595 | + | |
1593 | 1596 |
| |
1594 | 1597 |
| |
1595 | 1598 |
| |
1596 | 1599 |
| |
1597 | 1600 |
| |
1598 | 1601 |
| |
1599 |
| - | |
| 1602 | + | |
1600 | 1603 |
| |
1601 | 1604 |
| |
1602 | 1605 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 |
| |
47 | 51 |
| |
48 | 52 |
| |
| |||
53 | 57 |
| |
54 | 58 |
| |
55 | 59 |
| |
56 |
| - | |
| 60 | + | |
57 | 61 |
| |
58 | 62 |
| |
59 | 63 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1118 | 1118 |
| |
1119 | 1119 |
| |
1120 | 1120 |
| |
1121 |
| - | |
| 1121 | + | |
| 1122 | + | |
1122 | 1123 |
| |
1123 | 1124 |
| |
1124 | 1125 |
| |
|
Lines changed: 18 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| |||
871 | 871 |
| |
872 | 872 |
| |
873 | 873 |
| |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
874 | 881 |
| |
875 | 882 |
| |
876 | 883 |
| |
877 |
| - | |
| 884 | + | |
878 | 885 |
| |
879 | 886 |
| |
880 | 887 |
| |
| |||
883 | 890 |
| |
884 | 891 |
| |
885 | 892 |
| |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
886 | 898 |
| |
887 | 899 |
| |
888 | 900 |
| |
| |||
1107 | 1119 |
| |
1108 | 1120 |
| |
1109 | 1121 |
| |
1110 |
| - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1111 | 1126 |
| |
1112 | 1127 |
| |
1113 | 1128 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
0 commit comments
Comments
(0)