- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit762fed9
committed
postgres_fdw and dblink should check if backend has MyProcPort
before checking ->has_scram_keys. MyProcPort is NULL in backgroundworkers. So this could crash for example if a background workeraccessed a suitable configured foreign table.Author: Alexander Pyhalov <a.pyhalov@postgrespro.ru>Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/27b29a35-9b96-46a9-bc1a-914140869dac%40gmail.com1 parent41aac14 commit762fed9
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
| |||
2698 | 2698 | | |
2699 | 2699 | | |
2700 | 2700 | | |
2701 | | - | |
| 2701 | + | |
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
| |||
2771 | 2771 | | |
2772 | 2772 | | |
2773 | 2773 | | |
2774 | | - | |
| 2774 | + | |
2775 | 2775 | | |
2776 | 2776 | | |
2777 | 2777 | | |
| |||
2931 | 2931 | | |
2932 | 2932 | | |
2933 | 2933 | | |
2934 | | - | |
| 2934 | + | |
2935 | 2935 | | |
2936 | 2936 | | |
2937 | 2937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
| 746 | + | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| |||
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
2560 | | - | |
| 2560 | + | |
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
0 commit comments
Comments
(0)