- Notifications
You must be signed in to change notification settings - Fork5
Commit93eb619
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 parent23c75b5 commit93eb619
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
927 | 934 |
| |
928 | 935 |
| |
929 | 936 |
| |
|
0 commit comments
Comments
(0)