postgresql/src/bin/pg_dump/t
Nathan Bossart ec80215c03 pg_restore: Remove unnecessary strlen() calls in options parsing.
Unlike pg_dump and pg_dumpall, pg_restore first checks whether the
argument passed to --format, --host, and --port is empty before
setting the corresponding variable.  Consequently, pg_restore does
not error if given an empty format name, whereas pg_dump and
pg_dumpall do.  Empty arguments for --host and --port are ignored
by all three applications, so this commit produces no functionality
changes there.  This behavior should perhaps be reconsidered, but
that is left as a future exercise.  As with other recent changes to
option handling for these applications (commits b2898baaf7,
7c8280eeb5, and be0d0b457c), no back-patch.

Author: Mahendra Singh Thalor <mahi6run@gmail.com>
Reviewed-by: Srinath Reddy Sadipiralla <srinath2133@gmail.com>
Discussion: https://postgr.es/m/CAKYtNApkh%3DVy2DpNRCnEJmPpxNuksbAh_QBav%3D2fLmVjBhGwFw%40mail.gmail.com
2026-03-18 14:22:15 -05:00
..
001_basic.pl pg_restore: Remove unnecessary strlen() calls in options parsing. 2026-03-18 14:22:15 -05:00
002_pg_dump.pl SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
003_pg_dump_with_server.pl Disallow CR and LF in database, role, and tablespace names 2026-02-23 11:19:13 -05:00
004_pg_dump_parallel.pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
005_pg_dump_filterfile.pl pg_dumpall: Fix handling of conflicting options. 2026-03-06 14:00:04 -06:00
006_pg_dump_compress.pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
007_pg_dumpall.pl pg_{dump,restore}: Refactor handling of conflicting options. 2026-03-09 11:37:46 -05:00
010_dump_connstr.pl Disallow CR and LF in database, role, and tablespace names 2026-02-23 11:19:13 -05:00