forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitecbdc4c
committed
Forbid invalid combination of options in pg_basebackup.
Commit56c7d8d allowed pg_basebackupto stream WAL in tar mode. But there is the restriction that WALstreaming in tar mode works only when the value - (dash) is notspecified as output directory. This means that the combination ofthree options "-D -", "-F t" and "-X stream" is invalid. However,previously, even when those options were specified at the same time,pg_basebackup background process unexpectedly started streaming WAL.And then it exited with an error.This commit changes pg_basebackup so that it errors out on suchinvalid combination of options at the beginning.Reviewed by Magnus Hagander, and patch by me.1 parentc080b22 commitecbdc4c
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2268 | 2268 |
| |
2269 | 2269 |
| |
2270 | 2270 |
| |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2271 | 2281 |
| |
2272 | 2282 |
| |
2273 | 2283 |
| |
|
0 commit comments
Comments
(0)