forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c5f9f1
committed
Fix synchronized_standby_slots GUC check hook
The validate_sync_standby_slots subroutine requires an LWLock, so itcannot run in processes without PGPROC; skip it there to avoid a crash.This replaces the current test for ReplicationSlotCtl being not null,which appears to be a solution for the same problem but less general.I also rewrote a related comment that mentioned ReplicationSlotCtl inStandbySlotsHaveCaughtup.This code came in with commitbf279dd; backpatch to 17.Reported-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Zhijie Hou <houzj.fnst@fujitsu.com>Discussion:https://postgr.es/m/202411281216.sutbxtr6idnn@alvherre.pgsql1 parent1e5ef3a commit3c5f9f1
1 file changed
+17
-27
lines changedLines changed: 17 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2456 | 2456 |
| |
2457 | 2457 |
| |
2458 | 2458 |
| |
2459 |
| - | |
| 2459 | + | |
2460 | 2460 |
| |
2461 | 2461 |
| |
2462 |
| - | |
2463 |
| - | |
2464 |
| - | |
2465 |
| - | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
2466 | 2467 |
| |
2467 |
| - | |
2468 |
| - | |
2469 |
| - | |
2470 |
| - | |
2471 | 2468 |
| |
2472 | 2469 |
| |
2473 | 2470 |
| |
| |||
2649 | 2646 |
| |
2650 | 2647 |
| |
2651 | 2648 |
| |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
2652 | 2659 |
| |
2653 | 2660 |
| |
2654 |
| - | |
2655 |
| - | |
2656 |
| - | |
2657 |
| - | |
2658 |
| - | |
2659 |
| - | |
2660 |
| - | |
2661 |
| - | |
2662 |
| - | |
2663 |
| - | |
2664 | 2661 |
| |
2665 | 2662 |
| |
2666 | 2663 |
| |
| |||
2672 | 2669 |
| |
2673 | 2670 |
| |
2674 | 2671 |
| |
| 2672 | + | |
2675 | 2673 |
| |
2676 | 2674 |
| |
2677 |
| - | |
2678 |
| - | |
2679 |
| - | |
2680 |
| - | |
2681 |
| - | |
2682 |
| - | |
2683 |
| - | |
2684 |
| - | |
2685 | 2675 |
| |
2686 | 2676 |
| |
2687 | 2677 |
| |
|
0 commit comments
Comments
(0)