- Notifications
You must be signed in to change notification settings - Fork5
Commitd298b50
committed
Make pg_basebackup work with pre-9.3 servers, and add server version check.
A new 'starttli' field was added to the response of BASE_BACKUP command.Make pg_basebackup tolerate the case that it's missing, so that it stillworks with older servers.Add an explicit check for the server version, so that you get a nicer errormessage if you try to use it with a pre-9.1 server.The streaming protocol message format changed in 9.3, so -X stream still won'twork with pre-9.3 servers. I added a version check to ReceiveXLogStream()earlier, but write that slightly differently, so that in 9.4, it will stillwork with a 9.3 server. (In 9.4, the error message needs to be adjusted to"9.3 or above", though). Also, if the version check fails, don't retry.1 parentea988ee commitd298b50
File tree
5 files changed
+93
-14
lines changed- doc/src/sgml/ref
- src/bin/pg_basebackup
5 files changed
+93
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
523 | 529 | | |
524 | 530 | | |
525 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| 1226 | + | |
1226 | 1227 | | |
1227 | 1228 | | |
1228 | 1229 | | |
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1232 | 1236 | | |
1233 | 1237 | | |
1234 | 1238 | | |
| |||
1238 | 1242 | | |
1239 | 1243 | | |
1240 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1241 | 1270 | | |
1242 | 1271 | | |
1243 | 1272 | | |
| |||
1262 | 1291 | | |
1263 | 1292 | | |
1264 | 1293 | | |
| 1294 | + | |
1265 | 1295 | | |
1266 | 1296 | | |
1267 | 1297 | | |
| |||
1293 | 1323 | | |
1294 | 1324 | | |
1295 | 1325 | | |
1296 | | - | |
| 1326 | + | |
1297 | 1327 | | |
1298 | 1328 | | |
1299 | 1329 | | |
| |||
1302 | 1332 | | |
1303 | 1333 | | |
1304 | 1334 | | |
1305 | | - | |
1306 | | - | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1307 | 1343 | | |
1308 | 1344 | | |
1309 | 1345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
439 | 473 | | |
440 | 474 | | |
441 | 475 | | |
| |||
476 | 510 | | |
477 | 511 | | |
478 | 512 | | |
479 | | - | |
480 | | - | |
481 | | - | |
| 513 | + | |
| 514 | + | |
482 | 515 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
| 516 | + | |
490 | 517 | | |
491 | | - | |
492 | 518 | | |
493 | 519 | | |
494 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments
Comments
(0)