Re: pg_dumpall --roles-only interact with other options

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Chao Li <li.evan.chao@gmail.com>
Cc: Zsolt Parragi <zsolt.parragi@percona.com>, jian he <jian.universality@gmail.com>, wangpeng <215722532@qq.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-03T17:20:09Z
Lists: pgsql-hackers
On Tue, Mar 03, 2026 at 10:46:51AM +0800, Chao Li wrote:
> ```
> +			pg_fatal("options %s and %s cannot be used together",
> +					 first, opt);
> ```
> 
> The current code also shows a hint upon the error, do we want to retain that?

IMHO the hint is kind of silly because --help doesn't actually provide any
useful information about which options conflict with each other.  Not to
mention that pg_dump doesn't provide a hint for conflicting options.

-- 
nathan



Commits

  1. pg_dumpall: Fix handling of conflicting options.

  2. pg_dump: Add dumpSchema and dumpData derivative flags.