]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_dumpall: Fix handling of incompatible options.
authorNathan Bossart <nathan@postgresql.org>
Mon, 16 Mar 2026 16:01:20 +0000 (11:01 -0500)
committerNathan Bossart <nathan@postgresql.org>
Mon, 16 Mar 2026 16:01:20 +0000 (11:01 -0500)
commitbe0d0b457cb605f6e539f92af5e564fbe9d65e59
tree65747d4471802882f2626a7a6c0ccaef7ea1ecab
parentcd8844e7db64d57554c780ec9881457c573c51ab
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
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/t/001_basic.pl