forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit56f8f96
committed
Fix compilation failure of vacuumdb and reindexdb with OpenBSD
FD_SETSIZE is included in sys/select.h per POSIX, and this headerinclusion has been moved to scripts_parallel.c as of5f38403 withoutmoving the variable, causing a compilation failure on recent versions ofOpenBSD (6.6 was the version used in the report).In order to take care of the failure, move FD_SETSIZE directly toscripts_parallel.c with a wrapper controlling the maximum number ofparallel slots supported, based on a suggestion by Andres Freund.While on it, reduce the maximum number to be less than FD_SETSIZE,leaving some room for stdin, stdout and such as they consume some filedescriptors.The buildfarm did not complain about that, as it happens to only bean issue on recent versions of OpenBSD and there is no coverage in thisarea.51c3e9f fixed a similar set of issues.Bug: #15964Reported-by: Sean FarrellDiscussion:https://postgr.es/m/15964-c1753bdfed722e04@postgresql.org1 parent0431a78 commit56f8f96
File tree
4 files changed
+20
-4
lines changed- src/bin/scripts
4 files changed
+20
-4
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
97 | 111 |
| |
98 | 112 |
| |
99 | 113 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
| 25 | + | |
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
| 187 | + | |
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
|
0 commit comments
Comments
(0)