forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite460248
committed
dblink, postgres_fdw: Handle interrupts during connection establishment
Until now dblink and postgres_fdw did not process interrupts during connectionestablishment. Besides preventing query cancellations etc, this can lead toundetected deadlocks, as global barriers are not processed.These aforementioned undetected deadlocks are the reason for the spate of CItest failures in the FreeBSD 'test_running' step.Fix the bug by using the helper from libpq-be-fe-helpers.h, introduced in aprior commit. Besides fixing the bug, this also removes duplicated codearound reserving file descriptors.As the change is relatively large and there are no field reports of theproblem, don't backpatch for now.Reviewed-by: Thomas Munro <thomas.munro@gmail.com>Discussion:https://postgr.es/m/20220925232237.p6uskba2dw6fnwj2@awork3.anarazel.deBackpatch:1 parent28a5917 commite460248
2 files changed
+17
-104
lines changedLines changed: 11 additions & 68 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
199 | 200 |
| |
200 | 201 |
| |
201 | 202 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 | 203 |
| |
225 |
| - | |
| 204 | + | |
226 | 205 |
| |
227 | 206 |
| |
228 | 207 |
| |
229 | 208 |
| |
230 | 209 |
| |
231 |
| - | |
232 |
| - | |
| 210 | + | |
233 | 211 |
| |
234 | 212 |
| |
235 | 213 |
| |
| |||
312 | 290 |
| |
313 | 291 |
| |
314 | 292 |
| |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 | 293 |
| |
338 |
| - | |
| 294 | + | |
339 | 295 |
| |
340 | 296 |
| |
341 | 297 |
| |
342 | 298 |
| |
343 |
| - | |
344 |
| - | |
| 299 | + | |
345 | 300 |
| |
346 | 301 |
| |
347 | 302 |
| |
| |||
366 | 321 |
| |
367 | 322 |
| |
368 | 323 |
| |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
| 324 | + | |
373 | 325 |
| |
374 | 326 |
| |
375 | 327 |
| |
| |||
402 | 354 |
| |
403 | 355 |
| |
404 | 356 |
| |
405 |
| - | |
406 |
| - | |
| 357 | + | |
407 | 358 |
| |
408 | 359 |
| |
409 | 360 |
| |
| |||
838 | 789 |
| |
839 | 790 |
| |
840 | 791 |
| |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
| 792 | + | |
845 | 793 |
| |
846 | 794 |
| |
847 | 795 |
| |
| |||
1516 | 1464 |
| |
1517 | 1465 |
| |
1518 | 1466 |
| |
1519 |
| - | |
1520 |
| - | |
1521 |
| - | |
1522 |
| - | |
| 1467 | + | |
1523 | 1468 |
| |
1524 | 1469 |
| |
1525 | 1470 |
| |
| |||
2606 | 2551 |
| |
2607 | 2552 |
| |
2608 | 2553 |
| |
2609 |
| - | |
2610 |
| - | |
| 2554 | + | |
2611 | 2555 |
| |
2612 | 2556 |
| |
2613 | 2557 |
| |
| |||
2647 | 2591 |
| |
2648 | 2592 |
| |
2649 | 2593 |
| |
2650 |
| - | |
2651 |
| - | |
| 2594 | + | |
2652 | 2595 |
| |
2653 | 2596 |
| |
2654 | 2597 |
| |
|
Lines changed: 6 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
446 | 447 |
| |
447 | 448 |
| |
448 | 449 |
| |
449 |
| - | |
450 |
| - | |
451 |
| - | |
452 |
| - | |
453 |
| - | |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 |
| - | |
460 |
| - | |
461 |
| - | |
462 |
| - | |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 |
| - | |
471 |
| - | |
472 |
| - | |
473 | 450 |
| |
474 |
| - | |
475 |
| - | |
476 |
| - | |
477 |
| - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
478 | 454 |
| |
479 | 455 |
| |
480 | 456 |
| |
| |||
507 | 483 |
| |
508 | 484 |
| |
509 | 485 |
| |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
| 486 | + | |
516 | 487 |
| |
517 | 488 |
| |
518 | 489 |
| |
| |||
528 | 499 |
| |
529 | 500 |
| |
530 | 501 |
| |
531 |
| - | |
| 502 | + | |
532 | 503 |
| |
533 |
| - | |
534 | 504 |
| |
535 | 505 |
| |
536 | 506 |
| |
|
0 commit comments
Comments
(0)