forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbe182e4
committed
Disable timeouts when running pg_rewind with online source cluster
In this case, the transfer uses a libpq connection, which is subject tothe timeout parameters set at system level, and this can make the rewindoperation suddenly canceled which is not good for automation. Oneworkaround to such issues would be to use PGOPTIONS to enforce thewanted timeout parameters, but that's annoying, and for example pg_dump,which can run potentially long-running queries disables all types oftimeouts.lock_timeout and statement_timeout are the ones which can cause problemsnow. Note that pg_rewind does not use transactions, so disablingidle_in_transaction_session_timeout is optional, but it feels safer todo so for the future.This is back-patched down to 9.5. idle_in_transaction_session_timeoutis only present since 9.6.Author: Alexander KukushkinDiscussion:https://postgr.es/m/CAFh8B=krcVXksxiwVQh1SoY+ziJ-JC=6FcuoBL3yce_40Es5_g@mail.gmail.comBackpatch-through: 9.51 parentb1907d6 commitbe182e4
1 file changed
+26
-11
lines changedLines changed: 26 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 |
| |
58 | 64 |
| |
59 | 65 |
| |
| |||
88 | 94 |
| |
89 | 95 |
| |
90 | 96 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| |||
122 | 124 |
| |
123 | 125 |
| |
124 | 126 |
| |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
125 | 145 |
| |
126 | 146 |
| |
127 | 147 |
| |
| |||
427 | 447 |
| |
428 | 448 |
| |
429 | 449 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
| 450 | + | |
436 | 451 |
| |
437 | 452 |
| |
438 | 453 |
| |
|
0 commit comments
Comments
(0)