forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9abdc18
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 parent5ffbbcf commit9abdc18
1 file changed
+17
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2428 | 2428 | | |
2429 | 2429 | | |
2430 | 2430 | | |
2431 | | - | |
| 2431 | + | |
2432 | 2432 | | |
2433 | 2433 | | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
2438 | 2439 | | |
2439 | | - | |
2440 | | - | |
2441 | | - | |
2442 | | - | |
2443 | 2440 | | |
2444 | 2441 | | |
2445 | 2442 | | |
| |||
2621 | 2618 | | |
2622 | 2619 | | |
2623 | 2620 | | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
2624 | 2631 | | |
2625 | 2632 | | |
2626 | | - | |
2627 | | - | |
2628 | | - | |
2629 | | - | |
2630 | | - | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | 2633 | | |
2637 | 2634 | | |
2638 | 2635 | | |
| |||
2644 | 2641 | | |
2645 | 2642 | | |
2646 | 2643 | | |
| 2644 | + | |
2647 | 2645 | | |
2648 | 2646 | | |
2649 | | - | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | 2647 | | |
2658 | 2648 | | |
2659 | 2649 | | |
| |||
0 commit comments
Comments
(0)