forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb89ee54
committed
Fix some coding issues in BRIN
Reported by David Rowley: variadic macros are a problem. Get rid ofthem using a trick suggested by Tom Lane: add extra parentheses whereneeded. In the future we might decide we don't need the calls at alland remove them, but it seems appropriate to keep them while this codeis still new.Also from David Rowley: brininsert() was trying to use a variable beforeinitializing it. Fix by moving the brin_form_tuple call (whichinitializes the variable) to within the locked section.Reported by Peter Eisentraut: can't use "new" as a struct member name,because C++ compilers will choke on it, as reported by cpluspluscheck.1 parent926f5ce commitb89ee54
File tree
7 files changed
+29
-35
lines changed- src
- backend/access
- brin
- rmgrdesc
- include/access
7 files changed
+29
-35
lines changedLines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
| 250 | + | |
250 | 251 |
| |
251 |
| - | |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
255 |
| - | |
256 | 254 |
| |
257 | 255 |
| |
258 | 256 |
| |
| |||
589 | 587 |
| |
590 | 588 |
| |
591 | 589 |
| |
592 |
| - | |
593 |
| - | |
594 |
| - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
595 | 594 |
| |
596 | 595 |
| |
597 | 596 |
| |
|
Lines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
346 |
| - | |
| 345 | + | |
| 346 | + | |
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
| |||
593 | 593 |
| |
594 | 594 |
| |
595 | 595 |
| |
596 |
| - | |
597 |
| - | |
| 596 | + | |
| 597 | + | |
598 | 598 |
| |
599 | 599 |
| |
600 | 600 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
338 | 334 |
| |
339 | 335 |
| |
340 | 336 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
| 147 | + | |
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
| 58 | + | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
| 75 | + | |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 77 | + | |
| 78 | + | |
80 | 79 |
| |
81 |
| - | |
| 80 | + | |
82 | 81 |
| |
83 | 82 |
| |
84 | 83 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
| 79 | + | |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
|
0 commit comments
Comments
(0)