forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0dcaea5
committed
Introduce num_os_semaphores GUC.
The documentation for System V IPC parameters provides complicatedformulas to determine the appropriate values for SEMMNI and SEMMNS.Furthermore, these formulas have often been wrong because folksforget to update them (e.g., when adding a new auxiliary process).This commit introduces a new runtime-computed GUC namednum_os_semaphores that reports the number of semaphores needed forthe configured number of allowed connections, worker processes,etc. This new GUC allows us to simplify the formulas in thedocumentation, and it should help prevent future inaccuracies.Like the other runtime-computed GUCs, users can view it with"postgres -C" before starting the server, which is useful forpreconfiguring the necessary operating system resources.Reviewed-by: Tom Lane, Sami Imseih, Andres Freund, Robert HaasDiscussion:https://postgr.es/m/20240517164452.GA1914161%40nathanxps131 parent8a53539 commit0dcaea5
File tree
4 files changed
+54
-13
lines changed- doc/src/sgml
- src/backend
- storage/ipc
- utils/misc
4 files changed
+54
-13
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11145 | 11145 |
| |
11146 | 11146 |
| |
11147 | 11147 |
| |
| 11148 | + | |
| 11149 | + | |
| 11150 | + | |
| 11151 | + | |
| 11152 | + | |
| 11153 | + | |
| 11154 | + | |
| 11155 | + | |
| 11156 | + | |
| 11157 | + | |
| 11158 | + | |
| 11159 | + | |
| 11160 | + | |
| 11161 | + | |
| 11162 | + | |
| 11163 | + | |
| 11164 | + | |
| 11165 | + | |
11148 | 11166 |
| |
11149 | 11167 |
| |
11150 | 11168 |
| |
|
Lines changed: 19 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
781 | 781 |
| |
782 | 782 |
| |
783 | 783 |
| |
784 |
| - | |
| 784 | + | |
785 | 785 |
| |
786 | 786 |
| |
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
790 |
| - | |
| 790 | + | |
791 | 791 |
| |
792 | 792 |
| |
793 | 793 |
| |
| |||
839 | 839 |
| |
840 | 840 |
| |
841 | 841 |
| |
842 |
| - | |
843 |
| - | |
844 |
| - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
845 | 854 |
| |
846 | 855 |
| |
847 | 856 |
| |
848 | 857 |
| |
849 |
| - | |
850 |
| - | |
851 |
| - | |
852 |
| - | |
| 858 | + | |
| 859 | + | |
853 | 860 |
| |
854 | 861 |
| |
855 | 862 |
| |
856 |
| - | |
| 863 | + | |
857 | 864 |
| |
858 | 865 |
| |
859 | 866 |
| |
| |||
885 | 892 |
| |
886 | 893 |
| |
887 | 894 |
| |
888 |
| - | |
889 |
| - | |
| 895 | + | |
| 896 | + | |
890 | 897 |
| |
891 | 898 |
| |
892 | 899 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
| 375 | + | |
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
379 |
| - | |
| 380 | + | |
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
| |||
395 | 396 |
| |
396 | 397 |
| |
397 | 398 |
| |
| 399 | + | |
| 400 | + | |
| 401 | + | |
398 | 402 |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
| 594 | + | |
594 | 595 |
| |
595 | 596 |
| |
596 | 597 |
| |
| |||
2283 | 2284 |
| |
2284 | 2285 |
| |
2285 | 2286 |
| |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
2286 | 2298 |
| |
2287 | 2299 |
| |
2288 | 2300 |
| |
|
0 commit comments
Comments
(0)