forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7117685
committed
Implement backup API functions for non-exclusive backups
Previously non-exclusive backups had to be done using the replication protocoland pg_basebackup. With this commit it's now possible to make them usingpg_start_backup/pg_stop_backup as well, as long as the backup program canmaintain a persistent connection to the database.Doing this, backup_label and tablespace_map are returned as results frompg_stop_backup() instead of being written to the data directory. This makesthe server safe from a crash during an ongoing backup, which can be a problemwith exclusive backups.The old syntax of the functions remain and work exactly as before, but since thenew syntax is safer this should eventually be deprecated and removed.Only reference documentation is included. The main section on backup still needsto be rewritten to cover this, but since that is already scheduled for a separatelarge rewrite, it's not included in this patch.Reviewed by David Steele and Amit Kapila1 parent9457b59 commit7117685
File tree
9 files changed
+265
-53
lines changed- doc/src/sgml
- src
- backend
- access/transam
- catalog
- replication
- include
- access
- catalog
9 files changed
+265
-53
lines changedLines changed: 33 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17478 | 17478 |
| |
17479 | 17479 |
| |
17480 | 17480 |
| |
17481 |
| - | |
| 17481 | + | |
17482 | 17482 |
| |
17483 | 17483 |
| |
17484 | 17484 |
| |
| |||
17488 | 17488 |
| |
17489 | 17489 |
| |
17490 | 17490 |
| |
17491 |
| - | |
| 17491 | + | |
| 17492 | + | |
| 17493 | + | |
| 17494 | + | |
| 17495 | + | |
| 17496 | + | |
| 17497 | + | |
| 17498 | + | |
17492 | 17499 |
| |
17493 | 17500 |
| |
17494 | 17501 |
| |
| |||
17537 | 17544 |
| |
17538 | 17545 |
| |
17539 | 17546 |
| |
17540 |
| - | |
17541 |
| - | |
17542 |
| - | |
17543 |
| - | |
17544 |
| - | |
17545 |
| - | |
17546 |
| - | |
17547 |
| - | |
17548 |
| - | |
| 17547 | + | |
| 17548 | + | |
| 17549 | + | |
| 17550 | + | |
| 17551 | + | |
| 17552 | + | |
| 17553 | + | |
| 17554 | + | |
| 17555 | + | |
| 17556 | + | |
| 17557 | + | |
| 17558 | + | |
| 17559 | + | |
17549 | 17560 |
| |
17550 | 17561 |
| |
17551 | 17562 |
| |
| |||
17560 | 17571 |
| |
17561 | 17572 |
| |
17562 | 17573 |
| |
17563 |
| - | |
17564 |
| - | |
17565 |
| - | |
17566 |
| - | |
| 17574 | + | |
| 17575 | + | |
| 17576 | + | |
| 17577 | + | |
| 17578 | + | |
| 17579 | + | |
| 17580 | + | |
| 17581 | + | |
| 17582 | + | |
| 17583 | + | |
| 17584 | + | |
17567 | 17585 |
| |
17568 | 17586 |
| |
17569 | 17587 |
| |
|
Lines changed: 31 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9768 | 9768 |
| |
9769 | 9769 |
| |
9770 | 9770 |
| |
9771 |
| - | |
9772 |
| - | |
| 9771 | + | |
| 9772 | + | |
9773 | 9773 |
| |
9774 | 9774 |
| |
9775 | 9775 |
| |
| |||
9783 | 9783 |
| |
9784 | 9784 |
| |
9785 | 9785 |
| |
9786 |
| - | |
9787 |
| - | |
9788 | 9786 |
| |
9789 | 9787 |
| |
9790 | 9788 |
| |
| |||
9981 | 9979 |
| |
9982 | 9980 |
| |
9983 | 9981 |
| |
9984 |
| - | |
| 9982 | + | |
| 9983 | + | |
9985 | 9984 |
| |
9986 | 9985 |
| |
9987 | 9986 |
| |
| |||
10054 | 10053 |
| |
10055 | 10054 |
| |
10056 | 10055 |
| |
10057 |
| - | |
| 10056 | + | |
10058 | 10057 |
| |
10059 | 10058 |
| |
10060 | 10059 |
| |
| |||
10073 | 10072 |
| |
10074 | 10073 |
| |
10075 | 10074 |
| |
10076 |
| - | |
| 10075 | + | |
| 10076 | + | |
10077 | 10077 |
| |
10078 | 10078 |
| |
10079 | 10079 |
| |
10080 | 10080 |
| |
10081 | 10081 |
| |
10082 | 10082 |
| |
10083 |
| - | |
| 10083 | + | |
10084 | 10084 |
| |
10085 |
| - | |
| 10085 | + | |
10086 | 10086 |
| |
10087 |
| - | |
| 10087 | + | |
10088 | 10088 |
| |
10089 |
| - | |
| 10089 | + | |
10090 | 10090 |
| |
10091 |
| - | |
10092 |
| - | |
| 10091 | + | |
| 10092 | + | |
10093 | 10093 |
| |
10094 | 10094 |
| |
10095 | 10095 |
| |
| |||
10123 | 10123 |
| |
10124 | 10124 |
| |
10125 | 10125 |
| |
10126 |
| - | |
| 10126 | + | |
10127 | 10127 |
| |
10128 | 10128 |
| |
10129 | 10129 |
| |
| |||
10132 | 10132 |
| |
10133 | 10133 |
| |
10134 | 10134 |
| |
10135 |
| - | |
| 10135 | + | |
| 10136 | + | |
| 10137 | + | |
10136 | 10138 |
| |
10137 | 10139 |
| |
10138 |
| - | |
| 10140 | + | |
10139 | 10141 |
| |
10140 | 10142 |
| |
10141 | 10143 |
| |
| |||
10159 | 10161 |
| |
10160 | 10162 |
| |
10161 | 10163 |
| |
10162 |
| - | |
| 10164 | + | |
10163 | 10165 |
| |
10164 | 10166 |
| |
10165 | 10167 |
| |
| |||
10170 | 10172 |
| |
10171 | 10173 |
| |
10172 | 10174 |
| |
10173 |
| - | |
10174 |
| - | |
10175 |
| - | |
10176 |
| - | |
10177 |
| - | |
10178 |
| - | |
10179 |
| - | |
| 10175 | + | |
| 10176 | + | |
| 10177 | + | |
10180 | 10178 |
| |
10181 | 10179 |
| |
10182 | 10180 |
| |
| |||
10283 | 10281 |
| |
10284 | 10282 |
| |
10285 | 10283 |
| |
| 10284 | + | |
| 10285 | + | |
| 10286 | + | |
| 10287 | + | |
| 10288 | + | |
| 10289 | + | |
| 10290 | + | |
| 10291 | + | |
10286 | 10292 |
| |
| 10293 | + | |
10287 | 10294 |
| |
10288 | 10295 |
| |
10289 | 10296 |
| |
|
0 commit comments
Comments
(0)