forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc1d5895
committed
Try next host after a "cannot connect now" failure.
If a server returns ERRCODE_CANNOT_CONNECT_NOW, try the next host,if multiple host names have been provided. This allows dealinggracefully with standby servers that might not be in hot standby modeyet.In the wake of the preceding commit, it might be plausible to retrymany more error cases than we do now, but I (tgl) am hesitant tomove too aggressively on that --- it's not clear it'd be desirablefor cases such as bad-password, for example. But this case seemssafe enough.Hubert Zhang, reviewed by Takayuki TsunakawaDiscussion:https://postgr.es/m/BN6PR05MB3492948E4FD76C156E747E8BC9160@BN6PR05MB3492.namprd05.prod.outlook.com1 parent52a1022 commitc1d5895
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3315 | 3315 |
| |
3316 | 3316 |
| |
3317 | 3317 |
| |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
3318 | 3332 |
| |
3319 | 3333 |
| |
3320 | 3334 |
| |
|
0 commit comments
Comments
(0)