forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c75fb6
committed
Ensure that num_sync is greater than zero in synchronous_standby_names.
Previously num_sync could be set to zero and this setting causedan assertion failure. This means that multiple synchronous standbyscode should assume that num_sync is greater than zero.Also setting num_sync to zero is nonsense because it's basicallythe configuration for synchronous replication. If users want not tomake transaction commits wait for any standbys,synchronous_standby_names should be emptied to disable synchronousreplication instead of setting num_sync to zero.This patch forbids users from setting num_sync to zero insynchronous_standby_names. If zero is specified, an error willhappen during processing the parameter settings.Back-patch to 9.6 where multiple synchronous standbys feature was added.Patch by me. Reviewed by Tom Lane.Discussion: <CAHGQGwHWB3izc6cXuFLh5kOcAbFXaRhhgwd-X5PeN9TEjxqXwg@mail.gmail.com>1 parent6f73455 commit6c75fb6
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
925 | 932 |
| |
926 | 933 |
| |
927 | 934 |
| |
|
0 commit comments
Comments
(0)