- Notifications
You must be signed in to change notification settings - Fork5
Commit5762a4d
committed
Inherit max_safe_fds to child processes in EXEC_BACKEND mode.
Postmaster sets max_safe_fds by testing how many open file descriptors itcan open, and that is normally inherited by all child processes at fork().Not so on EXEC_BACKEND, ie. Windows, however. Because of that, weeffectively ignored max_files_per_process on Windows, and always assumeda conservative default of 32 simultaneous open files. That could have animpact on performance, if you need to access a lot of different filesin a query. After this patch, the value is passed to child processes bysave/restore_backend_variables() among many other global variables.It has been like this forever, but given the lack of complaints about it,I'm not backpatching this.1 parentd2c1740 commit5762a4d
File tree
3 files changed
+9
-1
lines changed- src
- backend
- postmaster
- storage/file
- include/storage
3 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
4741 | 4742 | | |
4742 | 4743 | | |
4743 | 4744 | | |
| 4745 | + | |
4744 | 4746 | | |
4745 | 4747 | | |
4746 | 4748 | | |
| |||
4964 | 4966 | | |
4965 | 4967 | | |
4966 | 4968 | | |
| 4969 | + | |
4967 | 4970 | | |
4968 | 4971 | | |
4969 | 4972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
0 commit comments
Comments
(0)