Commit fab13dc
committed
Make pg_basebackup ask the server to estimate the total backup size, by default.
This commit changes pg_basebackup so that it specifies PROGRESS option in
BASE_BACKUP replication command whether --progress is specified or not.
This causes the server to estimate the total backup size and report it in
pg_stat_progress_basebackup.backup_total, by default. This is reasonable
default because the time required for the estimation would not be so large
in most cases.
Also this commit adds new option --no-estimate-size to pg_basebackup.
This option prevents the server from the estimation, and so is useful to
avoid such estimation time if it's too long.
Author: Fujii Masao
Reviewed-by: Magnus Hagander, Amit Langote
Discussion: https://postgr.es/m/CABUevEyDPPSjP7KRvfTXPdqOdY5aWNkqsB5aAXs3bco5ZwtGHg@mail.gmail.com1 parent c314c14 commit fab13dc
File tree
3 files changed
+44
-21
lines changed- doc/src/sgml
- ref
- src/bin/pg_basebackup
3 files changed
+44
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4392 | 4392 | | |
4393 | 4393 | | |
4394 | 4394 | | |
4395 | | - | |
4396 | | - | |
4397 | | - | |
4398 | | - | |
| 4395 | + | |
4399 | 4396 | | |
4400 | 4397 | | |
4401 | 4398 | | |
4402 | 4399 | | |
4403 | 4400 | | |
4404 | 4401 | | |
4405 | 4402 | | |
4406 | | - | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
4407 | 4407 | | |
4408 | 4408 | | |
4409 | 4409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | 463 | | |
479 | 464 | | |
480 | 465 | | |
| |||
552 | 537 | | |
553 | 538 | | |
554 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
555 | 564 | | |
556 | 565 | | |
557 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| 390 | + | |
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
| |||
1741 | 1743 | | |
1742 | 1744 | | |
1743 | 1745 | | |
1744 | | - | |
| 1746 | + | |
1745 | 1747 | | |
1746 | 1748 | | |
1747 | 1749 | | |
| |||
2066 | 2068 | | |
2067 | 2069 | | |
2068 | 2070 | | |
| 2071 | + | |
2069 | 2072 | | |
2070 | 2073 | | |
2071 | 2074 | | |
| |||
2234 | 2237 | | |
2235 | 2238 | | |
2236 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
2237 | 2243 | | |
2238 | 2244 | | |
2239 | 2245 | | |
| |||
2356 | 2362 | | |
2357 | 2363 | | |
2358 | 2364 | | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2359 | 2373 | | |
2360 | 2374 | | |
2361 | 2375 | | |
| |||
0 commit comments