postgresql/src/bin
Tom Lane 04ace176e0 Tighten pg_restore's recognition of its -F (format) option values.
Instead of checking just the first letter, match the whole string
using pg_strcasecmp.  Per the documentation, we allow either just
the first letter (e.g. "c") or the whole name ("custom"); but we
will no longer accept random variations such as "chump".  This
matches pg_dump's longstanding parsing code for the same option.

Also for consistency with pg_dump, recognize "p"/"plain".  We don't
support 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.com
2025-01-25 11:24:16 -05:00
..
initdb initdb: Convert tests to use long options with fat comma style 2025-01-24 15:19:38 +09:00
pg_amcheck Add error pattern checks for some TAP tests for non-existing objects 2025-01-23 16:03:48 +09:00
pg_archivecleanup Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_basebackup Improve TAP tests of pg_basebackup 2025-01-23 15:15:36 +09:00
pg_checksums Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_combinebackup Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_config Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_controldata Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_ctl Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_dump Tighten pg_restore's recognition of its -F (format) option values. 2025-01-25 11:24:16 -05:00
pg_resetwal Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_rewind Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_test_fsync Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_test_timing Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_upgrade Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_verifybackup Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_waldump Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_walsummary Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgbench Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00
pgevent Update copyright for 2025 2025-01-01 11:21:55 -05:00
psql Change publication's publish_generated_columns option type to enum. 2025-01-23 15:28:37 +05:30
scripts Add error pattern checks for some TAP tests for non-existing objects 2025-01-23 16:03:48 +09:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00