forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit62e2a8d
committed
Define integer limits independently from the system definitions.
In83ff161 we defined integer limits iff they're not provided by thesystem. That turns out not to be the greatest idea because there'sdifferent ways some datatypes can be represented. E.g. on OSX PG's 64bitdatatype will be a 'long int', but OSX unconditionally uses 'longlong'. That disparity then can lead to warnings, e.g. around printfformats.One way to fix that would be to back int64 using stdint.h'sint64_t. While a good idea it's not that easy to implement. We woulde.g. need to include stdint.h in our external headers, which we don'ttoday. Also computing the correct int64 printf formats in that case isnontrivial.Instead simply prefix the integer limits with PG_ and define themunconditionally. I've adjusted all the references to them in code, butnot the ones in comments; the latter seems unnecessary to me.Discussion: 20150331141423.GK4878@alap3.anarazel.de1 parente146ca6 commit62e2a8d
File tree
16 files changed
+45
-69
lines changed- contrib
- btree_gist
- pgbench
- src
- backend
- access/transam
- tsearch
- utils/adt
- include
- datatype
- executor
- nodes
- port
- storage
- utils
16 files changed
+45
-69
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 |
| - | |
| 157 | + | |
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
452 |
| - | |
| 452 | + | |
453 | 453 |
| |
454 | 454 |
| |
455 | 455 |
| |
| |||
3521 | 3521 |
| |
3522 | 3522 |
| |
3523 | 3523 |
| |
3524 |
| - | |
| 3524 | + | |
3525 | 3525 |
| |
3526 | 3526 |
| |
3527 | 3527 |
| |
| |||
3548 | 3548 |
| |
3549 | 3549 |
| |
3550 | 3550 |
| |
3551 |
| - | |
| 3551 | + | |
3552 | 3552 |
| |
3553 | 3553 |
| |
3554 | 3554 |
| |
| |||
3584 | 3584 |
| |
3585 | 3585 |
| |
3586 | 3586 |
| |
3587 |
| - | |
| 3587 | + | |
3588 | 3588 |
| |
3589 | 3589 |
| |
3590 | 3590 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1408 | 1408 |
| |
1409 | 1409 |
| |
1410 | 1410 |
| |
1411 |
| - | |
| 1411 | + | |
1412 | 1412 |
| |
1413 | 1413 |
| |
1414 | 1414 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2260 | 2260 |
| |
2261 | 2261 |
| |
2262 | 2262 |
| |
2263 |
| - | |
| 2263 | + | |
2264 | 2264 |
| |
2265 | 2265 |
| |
2266 | 2266 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3309 | 3309 |
| |
3310 | 3310 |
| |
3311 | 3311 |
| |
3312 |
| - | |
| 3312 | + | |
3313 | 3313 |
| |
3314 | 3314 |
| |
3315 | 3315 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
Lines changed: 22 additions & 46 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
249 | 249 |
| |
250 | 250 |
| |
251 | 251 |
| |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 |
| - | |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 | 252 |
| |
283 | 253 |
| |
284 | 254 |
| |
| |||
314 | 284 |
| |
315 | 285 |
| |
316 | 286 |
| |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 | 287 |
| |
329 | 288 |
| |
330 | 289 |
| |
331 | 290 |
| |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 | 291 |
| |
338 | 292 |
| |
339 | 293 |
| |
| |||
345 | 299 |
| |
346 | 300 |
| |
347 | 301 |
| |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
348 | 324 |
| |
349 | 325 |
| |
350 | 326 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
123 |
| - | |
| 122 | + | |
| 123 | + | |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
587 | 587 |
| |
588 | 588 |
| |
589 | 589 |
| |
590 |
| - | |
| 590 | + | |
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
489 | 489 |
| |
490 | 490 |
| |
491 | 491 |
| |
492 |
| - | |
| 492 | + | |
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
| |||
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
521 |
| - | |
| 521 | + | |
522 | 522 |
| |
523 | 523 |
| |
524 | 524 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
| 39 | + | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
|
0 commit comments
Comments
(0)