forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitee79647
committed
Prevent BASE_BACKUP in the middle of another backup in the same session.
Multiple non-exclusive backups are able to be run conrrently in differentsessions. But, in the same session, only one non-exclusive backup can berun at the same moment. If pg_backup_start (pg_start_backup in v14 or before)is called in the middle of another non-exclusive backup in the same session,an error is thrown.However, previously, in logical replication walsender mode, even if thatwalsender session had already called pg_backup_start and starteda non-exclusive backup, it could execute BASE_BACKUP command andstart another non-exclusive backup. Which caused subsequent pg_backup_stopto throw an error because BASE_BACKUP unexpectedly reset the session statemarked by pg_backup_start.This commit prevents BASE_BACKUP command in the middle of anothernon-exclusive backup in the same session.Back-patch to all supported branches.Author: Fujii MasaoReviewed-by: Kyotaro Horiguchi, Masahiko Sawada, Michael Paquier, Robert HaasDiscussion:https://postgr.es/m/3374718f-9fbf-a950-6d66-d973e027f44c@oss.nttdata.com1 parent12c254c commitee79647
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
949 | 949 |
| |
950 | 950 |
| |
951 | 951 |
| |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
952 | 958 |
| |
953 | 959 |
| |
954 | 960 |
| |
|
0 commit comments
Comments
(0)