forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc34bca9
committed
Consolidate cross-option checks in pg_restore
This moves one check for conflicting options from the archive restorecode to the main function where other similar checks are performed.Also reword the error message to be consistent with other messages.The only option combination impacted is --create specified with--single-transaction, and informing the caller at an early step savesfrom opening the archive worked on. A TAP test is added for thiscombination.Author: Daniel GustafssonReviewed-by: Fabien CoelhoDiscussion:https://postgr.es/m/616808BD-4B59-4E6C-97A9-7317F62D5570@yesql.se1 parentd5eec4e commitc34bca9
File tree
3 files changed
+18
-10
lines changed- src/bin/pg_dump
- t
3 files changed
+18
-10
lines changedLines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 | 361 |
| |
371 | 362 |
| |
372 | 363 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
334 | 345 |
| |
335 | 346 |
| |
336 | 347 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + |
0 commit comments
Comments
(0)