forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit792b0f4
committed
Get rid of not-very-portable fcntl(F_SETLK) mechanism for locking the Unix
socket file, in favor of having an ordinary lockfile beside the socket file.Clean up a few robustness problems in the lockfile code. If postmaster isgoing to reject a connection request based on database state, it will nowtell you so before authentication exchange not after. (Of course, a failureafter is still possible if conditions change meanwhile, but this makes lifeeasier for a yet-to-be-written pg_ping utility.)1 parent1efd733 commit792b0f4
File tree
10 files changed
+497
-565
lines changed- src
- backend
- libpq
- postmaster
- tcop
- utils
- init
- misc
- bin/pg_ctl
- include
10 files changed
+497
-565
lines changedLines changed: 124 additions & 158 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
758 | 758 |
| |
759 | 759 |
| |
760 | 760 |
| |
761 |
| - | |
762 |
| - | |
763 |
| - | |
764 |
| - | |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 |
| - | |
774 |
| - | |
775 |
| - | |
776 |
| - | |
777 |
| - | |
778 | 761 |
| |
779 | 762 |
| |
780 | 763 |
| |
|
Lines changed: 22 additions & 53 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 |
| - | |
| 172 | + | |
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 | 186 |
| |
190 | 187 |
| |
191 | 188 |
| |
| |||
223 | 220 |
| |
224 | 221 |
| |
225 | 222 |
| |
226 |
| - | |
227 |
| - | |
| 223 | + | |
228 | 224 |
| |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
242 | 232 |
| |
243 | 233 |
| |
244 | 234 |
| |
| |||
274 | 264 |
| |
275 | 265 |
| |
276 | 266 |
| |
277 |
| - | |
278 |
| - | |
| 267 | + | |
| 268 | + | |
279 | 269 |
| |
280 | 270 |
| |
281 | 271 |
| |
| |||
293 | 283 |
| |
294 | 284 |
| |
295 | 285 |
| |
| 286 | + | |
296 | 287 |
| |
297 | 288 |
| |
298 | 289 |
| |
299 |
| - | |
300 |
| - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
301 | 293 |
| |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 | 294 |
| |
332 | 295 |
| |
333 | 296 |
| |
| |||
379 | 342 |
| |
380 | 343 |
| |
381 | 344 |
| |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
382 | 351 |
| |
383 | 352 |
| |
384 | 353 |
| |
|
0 commit comments
Comments
(0)