forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c89064
committed
pg_upgrade: start/stop new server after pg_resetwal
When commit0f33a71 removed theinstructions to start/stop the new cluster before running rsync, it wasnow possible for pg_resetwal/pg_resetxlog to leave the final WAL recordat wal_level=minimum, preventing upgraded standby servers fromreconnecting.This patch fixes that by having pg_upgrade unconditionally start/stopthe new cluster after pg_resetwal/pg_resetxlog has run.Backpatch through 9.2 since, though the instructions were added in PG9.5, they worked all the way back to 9.2.Discussion:https://postgr.es/m/20170620171844.GC24975@momjian.usBackpatch-through: 9.21 parentf1e1f99 commit5c89064
3 files changed
+13
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
200 | 200 |
| |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
201 | 209 |
| |
202 | 210 |
| |
203 | 211 |
| |
204 |
| - | |
205 |
| - | |
206 | 212 |
| |
207 | 213 |
| |
208 | 214 |
| |
| |||
218 | 224 |
| |
219 | 225 |
| |
220 | 226 |
| |
221 |
| - | |
222 | 227 |
| |
223 | 228 |
| |
224 | 229 |
| |
225 | 230 |
| |
226 |
| - | |
227 |
| - | |
228 | 231 |
| |
229 |
| - | |
230 |
| - | |
| 232 | + | |
| 233 | + | |
231 | 234 |
| |
232 | 235 |
| |
233 | 236 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
0 commit comments
Comments
(0)