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

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Zsolt Parragi <zsolt.parragi@percona.com>
Cc: jian he <jian.universality@gmail.com>, wangpeng <215722532@qq.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-02T22:41:24Z
Lists: pgsql-hackers

Attachments

On Mon, Mar 02, 2026 at 10:23:17PM +0000, Zsolt Parragi wrote:
> New version looks good!

I'm not thrilled about the long list of checks.  What if we added a
function that could check an arbitrary number of mutually exclusive
options, a bit like the attached?

-- 
nathan

Commits

  1. pg_dumpall: Fix handling of conflicting options.

  2. pg_dump: Add dumpSchema and dumpData derivative flags.