Commit 4e0c743
committed
Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnections.
We were independently checking ReservedBackends < MaxConnections and
max_wal_senders < MaxConnections, but because walsenders aren't allowed
to use superuser-reserved connections, that's really the wrong thing.
Correct behavior is to insist on ReservedBackends + max_wal_senders being
less than MaxConnections. Fix the code and associated documentation.
This has been wrong for a long time, but since the situation probably
hardly ever arises in the field (especially pre-v10, when the default
for max_wal_senders was zero), no back-patch.
Discussion: https://postgr.es/m/28271.1520195491@sss.pgh.pa.us1 parent f9f8784 commit 4e0c743
File tree
4 files changed
+24
-21
lines changed- doc/src/sgml
- src/backend
- postmaster
- utils
- init
- misc
4 files changed
+24
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| |||
2982 | 2983 | | |
2983 | 2984 | | |
2984 | 2985 | | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
2988 | 2991 | | |
2989 | 2992 | | |
2990 | 2993 | | |
2991 | | - | |
| 2994 | + | |
| 2995 | + | |
2992 | 2996 | | |
2993 | 2997 | | |
2994 | 2998 | | |
| |||
3007 | 3011 | | |
3008 | 3012 | | |
3009 | 3013 | | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
| 3014 | + | |
3013 | 3015 | | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
3014 | 3019 | | |
3015 | 3020 | | |
3016 | 3021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
893 | 890 | | |
894 | 891 | | |
895 | 892 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
| 781 | + | |
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
1876 | 1877 | | |
1877 | 1878 | | |
1878 | 1879 | | |
| |||
2375 | 2376 | | |
2376 | 2377 | | |
2377 | 2378 | | |
2378 | | - | |
| 2379 | + | |
2379 | 2380 | | |
2380 | 2381 | | |
2381 | 2382 | | |
| |||
2386 | 2387 | | |
2387 | 2388 | | |
2388 | 2389 | | |
2389 | | - | |
| 2390 | + | |
2390 | 2391 | | |
2391 | 2392 | | |
2392 | 2393 | | |
| |||
0 commit comments