Commit 4567596
committed
Reduce more the number of calls to GetMaxBackends()
Some of the code paths changed by aa64f23 can reduce the number of times
GetMaxBackends() is called. The performance gain is marginal, but most
of the code changed by this commit already did that. Hence, let's be
clean 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 Haas
Discussion: https://postgr.es/m/YgMpGZhPOjNfS7er@paquier.xyz1 parent f0cd909 commit 4567596
File tree
3 files changed
+10
-7
lines changed- src/backend
- commands
- storage/lmgr
- utils/adt
3 files changed
+10
-7
lines changed| 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 | | |
| |||
| 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 | | |
| |||
| 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