]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_{dump,restore}: Refactor handling of conflicting options.
authorNathan Bossart <nathan@postgresql.org>
Mon, 9 Mar 2026 16:37:46 +0000 (11:37 -0500)
committerNathan Bossart <nathan@postgresql.org>
Mon, 9 Mar 2026 16:37:46 +0000 (11:37 -0500)
commit7c8280eeb5872f5c2663b562a9c6fcf8ec8a4b82
tree41f2e4804c82fb1fc90932c0e0a4bf3940e8562c
parent91f33a2ae92a68ac89b36eb21e0c5c903d03a142
pg_{dump,restore}: Refactor handling of conflicting options.

This commit makes use of the function added by commit b2898baaf7
for these applications' handling of conflicting options.  It
doesn't fix any bugs, but it does trim several lines of code.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Steven Niu <niushiji@gmail.com>
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Discussion: https://postgr.es/m/CACJufxHDYn%2B3-2jR_kwYB0U7UrNP%2B0EPvAWzBBD5EfUzzr1uiw%40mail.gmail.com
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/t/001_basic.pl
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_dump/t/007_pg_dumpall.pl