- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit1b11561
committed
Standardize format for printing PIDs
Most code prints PIDs as %d, but some code tried to print them as longor unsigned long. While this is in theory allowed, the fact that PIDsfit into int is deeply baked into all PostgreSQL code, so these randomdeviations don't accomplish anything except confusion.Note that we still need casts from pid_t to int, because on 64-bitMinGW, pid_t is long long int. (But per above, actually supportingthat range in PostgreSQL code would be major surgery and probably notuseful.)Discussion:https://www.postgresql.org/message-id/289c2e45-c7d9-5ce4-7eff-a9e2a33e1580@enterprisedb.com1 parent34df7b9 commit1b11561
File tree
3 files changed
+14
-14
lines changed- contrib/pg_prewarm
- src/backend
- postmaster
- storage/ipc
3 files changed
+14
-14
lines changedLines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 |
| - | |
197 |
| - | |
| 196 | + | |
| 197 | + | |
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 |
| - | |
307 |
| - | |
| 306 | + | |
| 307 | + | |
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
| |||
599 | 599 |
| |
600 | 600 |
| |
601 | 601 |
| |
602 |
| - | |
603 |
| - | |
| 602 | + | |
| 603 | + | |
604 | 604 |
| |
605 | 605 |
| |
606 |
| - | |
607 |
| - | |
| 606 | + | |
| 607 | + | |
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
| |||
737 | 737 |
| |
738 | 738 |
| |
739 | 739 |
| |
740 |
| - | |
741 |
| - | |
| 740 | + | |
| 741 | + | |
742 | 742 |
| |
743 | 743 |
| |
744 | 744 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
392 |
| - | |
393 |
| - | |
| 392 | + | |
| 393 | + | |
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
419 |
| - | |
420 |
| - | |
| 419 | + | |
| 420 | + | |
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
|
0 commit comments
Comments
(0)