- Notifications
You must be signed in to change notification settings - Fork5
Commit346199d
committed
Set the priorities of all quorum synchronous standbys to 1.
In quorum-based synchronous replication, all the standbys listed insynchronous_standby_names equally have chances to be chosenas synchronous standbys. So they should have the same priority.However, previously, quorum standbys whose names appear earlierin the list were given higher priority values though the difference ofthose priority values didn't affect the selection of synchronous standbys.Users could see those "meaningless" priority values in pg_stat_replicationand this was confusing.This commit gives all the quorum synchronous standbys the samehighest priority, i.e., 1, in order to remove such confusion.Author: Fujii MasaoReviewed-by: Masahiko Sawada, Kyotaro HoriguchiDiscussion:http://postgr.es/m/CAHGQGwEKOw=SmPLxJzkBsH6wwDBgOnVz46QjHbtsiZ-d-2RGUg@mail.gmail.com1 parentcdd5bca commit346199d
File tree
2 files changed
+9
-2
lines changed- src
- backend/replication
- test/recovery/t
2 files changed
+9
-2
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
951 | 951 |
| |
952 | 952 |
| |
953 | 953 |
| |
954 |
| - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
955 | 962 |
| |
956 | 963 |
| |
957 | 964 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 |
| - | |
| 189 | + | |
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
|
0 commit comments
Comments
(0)