forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4567596
committed
Reduce more the number of calls to GetMaxBackends()
Some of the code paths changed byaa64f23 can reduce the number of timesGetMaxBackends() is called. The performance gain is marginal, but mostof the code changed by this commit already did that. Hence, let's beclean and apply the same rule everywhere, for consistency.Some of the code paths, like in deadlock.c, involve only assertions.These are left unchanged.Reviewed-by: Nathan Bossart, Robert HaasDiscussion:https://postgr.es/m/YgMpGZhPOjNfS7er@paquier.xyz1 parentf0cd909 commit4567596
File tree
3 files changed
+10
-7
lines changed- src/backend
- commands
- storage/lmgr
- utils/adt
3 files changed
+10
-7
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1633 | 1633 |
| |
1634 | 1634 |
| |
1635 | 1635 |
| |
| 1636 | + | |
1636 | 1637 |
| |
1637 | 1638 |
| |
1638 | 1639 |
| |
| |||
1642 | 1643 |
| |
1643 | 1644 |
| |
1644 | 1645 |
| |
1645 |
| - | |
1646 |
| - | |
| 1646 | + | |
| 1647 | + | |
1647 | 1648 |
| |
1648 | 1649 |
| |
1649 | 1650 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2924 | 2924 |
| |
2925 | 2925 |
| |
2926 | 2926 |
| |
| 2927 | + | |
2927 | 2928 |
| |
2928 | 2929 |
| |
2929 | 2930 |
| |
| |||
2942 | 2943 |
| |
2943 | 2944 |
| |
2944 | 2945 |
| |
2945 |
| - | |
| 2946 | + | |
2946 | 2947 |
| |
2947 | 2948 |
| |
2948 | 2949 |
| |
2949 | 2950 |
| |
2950 |
| - | |
| 2951 | + | |
2951 | 2952 |
| |
2952 | 2953 |
| |
2953 | 2954 |
| |
| |||
3104 | 3105 |
| |
3105 | 3106 |
| |
3106 | 3107 |
| |
3107 |
| - | |
| 3108 | + | |
3108 | 3109 |
| |
3109 | 3110 |
| |
3110 | 3111 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
559 | 559 |
| |
560 | 560 |
| |
561 | 561 |
| |
| 562 | + | |
562 | 563 |
| |
563 | 564 |
| |
564 |
| - | |
| 565 | + | |
565 | 566 |
| |
566 | 567 |
| |
567 | 568 |
| |
568 |
| - | |
| 569 | + | |
569 | 570 |
| |
570 | 571 |
| |
571 | 572 |
| |
|
0 commit comments
Comments
(0)