pg_dump: reject combination of "only" and "with"

Jeff Davis <jdavis@postgresql.org>

Commit: 0ed92cf50cc428dad1732a5e604e5450d47acba3
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2025-08-01T17:06:57Z
pg_dump: reject combination of "only" and "with"

Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/8ce896d1a05040905cc1a3afbc04e94d8e95669a.camel@j-davis.com
Backpatch-through: 18

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +14 −5
src/bin/pg_dump/pg_restore.c modified +14 −5
src/bin/pg_dump/t/002_pg_dump.pl modified +11 −7

Discussion