forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitccf655c
committed
Minor cleanup/code review for "indirect toast" stuff.
Fix some issues I noticed while fooling with an extension to allow anadditional kind of toast pointer. Much of this is just commentimprovement, but there are a couple of actual bugs, which might or mightnot be reachable today depending on what can happen during logicaldecoding. An example is that toast_flatten_tuple() failed to cover thepossibility of an indirection pointer in its input. Back-patch to 9.4just in case that is reachable now.In HEAD, also correct some really minor issues with recent compressionreorganization, such as dangerously underparenthesized macros.1 parent3bc4c69 commitccf655c
File tree
3 files changed
+59
-37
lines changed- src
- backend/access/heap
- include
- access
3 files changed
+59
-37
lines changedLines changed: 37 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
| |||
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
89 |
| - | |
90 |
| - | |
91 |
| - | |
| 90 | + | |
92 | 91 |
| |
93 | 92 |
| |
94 | 93 |
| |
| |||
98 | 97 |
| |
99 | 98 |
| |
100 | 99 |
| |
101 |
| - | |
102 |
| - | |
| 100 | + | |
| 101 | + | |
103 | 102 |
| |
104 | 103 |
| |
105 |
| - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 |
| |
107 | 109 |
| |
108 | 110 |
| |
| |||
122 | 124 |
| |
123 | 125 |
| |
124 | 126 |
| |
125 |
| - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 |
| |
127 | 132 |
| |
128 | 133 |
| |
| |||
147 | 152 |
| |
148 | 153 |
| |
149 | 154 |
| |
| 155 | + | |
| 156 | + | |
| 157 | + | |
150 | 158 |
| |
151 | 159 |
| |
152 | 160 |
| |
| |||
155 | 163 |
| |
156 | 164 |
| |
157 | 165 |
| |
| 166 | + | |
158 | 167 |
| |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
159 | 178 |
| |
160 | 179 |
| |
161 | 180 |
| |
| |||
231 | 250 |
| |
232 | 251 |
| |
233 | 252 |
| |
| 253 | + | |
| 254 | + | |
234 | 255 |
| |
235 | 256 |
| |
236 | 257 |
| |
| |||
437 | 458 |
| |
438 | 459 |
| |
439 | 460 |
| |
440 |
| - | |
441 |
| - | |
442 | 461 |
| |
443 | 462 |
| |
444 | 463 |
| |
| |||
600 | 619 |
| |
601 | 620 |
| |
602 | 621 |
| |
603 |
| - | |
| 622 | + | |
| 623 | + | |
604 | 624 |
| |
605 | 625 |
| |
606 | 626 |
| |
| |||
1032 | 1052 |
| |
1033 | 1053 |
| |
1034 | 1054 |
| |
1035 |
| - | |
| 1055 | + | |
1036 | 1056 |
| |
1037 | 1057 |
| |
1038 | 1058 |
| |
| |||
1726 | 1746 |
| |
1727 | 1747 |
| |
1728 | 1748 |
| |
1729 |
| - | |
1730 |
| - | |
| 1749 | + | |
| 1750 | + | |
1731 | 1751 |
| |
1732 | 1752 |
| |
1733 | 1753 |
| |
| |||
1903 | 1923 |
| |
1904 | 1924 |
| |
1905 | 1925 |
| |
1906 |
| - | |
| 1926 | + | |
| 1927 | + | |
1907 | 1928 |
| |
1908 | 1929 |
| |
1909 | 1930 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
| 99 | + | |
100 | 100 |
| |
101 |
| - | |
102 |
| - | |
| 101 | + | |
| 102 | + | |
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
|
Lines changed: 19 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 |
| |
80 |
| - | |
81 |
| - | |
| 82 | + | |
| 83 | + | |
82 | 84 |
| |
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
88 |
| - | |
89 | 90 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
| |||
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
101 |
| - | |
| 102 | + | |
102 | 103 |
| |
103 |
| - | |
| 104 | + | |
104 | 105 |
| |
105 | 106 |
| |
106 | 107 |
| |
| |||
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
135 |
| - | |
| 136 | + | |
136 | 137 |
| |
137 | 138 |
| |
138 | 139 |
| |
| |||
162 | 163 |
| |
163 | 164 |
| |
164 | 165 |
| |
165 |
| - | |
166 |
| - | |
| 166 | + | |
| 167 | + | |
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
|
0 commit comments
Comments
(0)