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-02-09T19:15:37Z
Lists: pgsql-hackers
On Mon, Feb 09, 2026 at 07:09:54PM +0000, Zsolt Parragi wrote:
> But it is again missing a few cases that should error out before
> pg_dump, as currently it fails after pg_dump errors out:
> 
> --schema-only --no-schema
> --data-only --no-data
> --statistics-only --no-statistics

Is there a reason we need to duplicate these checks in pg_dumpall when they
are already handled by pg_dump?

-- 
nathan



Commits

  1. pg_dumpall: Fix handling of conflicting options.

  2. pg_dump: Add dumpSchema and dumpData derivative flags.