forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit04ace17
committed
Tighten pg_restore's recognition of its -F (format) option values.
Instead of checking just the first letter, match the whole stringusing pg_strcasecmp. Per the documentation, we allow either justthe first letter (e.g. "c") or the whole name ("custom"); but wewill no longer accept random variations such as "chump". Thismatches pg_dump's longstanding parsing code for the same option.Also for consistency with pg_dump, recognize "p"/"plain". We don'tsupport it, but we can give a more helpful error message than"unrecognized archive format".Author: Srinath Reddy <srinath2133@gmail.com>Discussion:https://postgr.es/m/CAFC+b6pfK-BGcWW1kQmtxVrCh-JGjB2X02rLPQs_ZFaDGjZDsQ@mail.gmail.com1 parentd2ca16b commit04ace17
1 file changed
+17
-19
lines changedLines changed: 17 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
386 |
| - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
387 | 397 |
| |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 |
| - | |
395 |
| - | |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
406 | 401 |
| |
| 402 | + | |
| 403 | + | |
| 404 | + | |
407 | 405 |
| |
408 | 406 |
| |
409 | 407 |
| |
|
0 commit comments
Comments
(0)