pg_dumpall: Fix handling of incompatible options.
Nathan Bossart <nathan@postgresql.org>
pg_dumpall: Fix handling of incompatible options. This commit teaches pg_dumpall to fail when both --clean and --data-only are specified. Previously, it passed the options through to pg_dump, which would fail after pg_dumpall had already started producing output. Like recent commits b2898baaf7 and 7c8280eeb5, no back-patch. Author: Mahendra Singh Thalor <mahi6run@gmail.com> Reviewed-by: Srinath Reddy Sadipiralla <srinath2133@gmail.com> Discussion: https://postgr.es/m/CAKYtNArrHiJ0LDB9BFZiUWs6tC78QkBN50wiwO07WhxewYDS3Q%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dumpall.c | modified | +4 −0 |
| src/bin/pg_dump/t/001_basic.pl | modified | +5 −0 |
Discussion
- bug: pg_dumpall with --data-only and --clean options is giving an error after some dump 8 messages · 2026-03-14 → 2026-03-16