- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit0d5c387
committed
Add option --config-file to pg_rewind
This option is useful to do a rewind with the server configuration file(aka postgresql.conf) located outside the data directory, which issomething that some Linux distributions and some HA tools like to relyon. As a result, this can simplify the logic around a rewind byavoiding the copy of such files before running pg_rewind.This option affects pg_rewind when it internally starts the targetcluster with some "postgres" commands, adding -c config_file=FILE to thecommand strings generated, when:- retrieving a restore_command using a "postgres -C" command for-c/--restore-target-wal.- forcing crash recovery once to get the cluster into a clean shutdownstate.Author: Gunnar "Nick" BluthReviewed-by: Michael Banck, Alexander Kukushkin, Michael Paquier,Alexander AlekseevDiscussion:https://postgr.es/m/7c59265d-ac50-b0aa-ca1e-65e8bd27642a@pro-open.de1 parenta82a5ee commit0d5c387
File tree
3 files changed
+47
-4
lines changed- doc/src/sgml/ref
- src/bin/pg_rewind
- t
3 files changed
+47
-4
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
244 | 259 |
| |
245 | 260 |
| |
246 | 261 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
| |||
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
| 91 | + | |
| 92 | + | |
90 | 93 |
| |
91 | 94 |
| |
92 | 95 |
| |
| |||
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
| 121 | + | |
118 | 122 |
| |
119 | 123 |
| |
120 | 124 |
| |
| |||
205 | 209 |
| |
206 | 210 |
| |
207 | 211 |
| |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 |
| |
209 | 217 |
| |
210 | 218 |
| |
| |||
1058 | 1066 |
| |
1059 | 1067 |
| |
1060 | 1068 |
| |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1061 | 1076 |
| |
1062 | 1077 |
| |
1063 | 1078 |
| |
| |||
1136 | 1151 |
| |
1137 | 1152 |
| |
1138 | 1153 |
| |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1139 | 1161 |
| |
1140 | 1162 |
| |
1141 | 1163 |
| |
|
Lines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 |
| - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
267 | 269 |
| |
268 | 270 |
| |
269 | 271 |
| |
| |||
276 | 278 |
| |
277 | 279 |
| |
278 | 280 |
| |
279 |
| - | |
| 281 | + | |
| 282 | + | |
280 | 283 |
| |
281 | 284 |
| |
282 | 285 |
| |
| |||
323 | 326 |
| |
324 | 327 |
| |
325 | 328 |
| |
326 |
| - | |
| 329 | + | |
| 330 | + | |
327 | 331 |
| |
328 | 332 |
| |
329 | 333 |
| |
| |||
332 | 336 |
| |
333 | 337 |
| |
334 | 338 |
| |
335 |
| - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
336 | 342 |
| |
337 | 343 |
| |
338 | 344 |
| |
|
0 commit comments
Comments
(0)