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

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, wangpeng <215722532(at)qq(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dumpall --roles-only interact with other options
Date: 2026-03-03 17:20:09
Message-ID: aacYSfgxTb6neYiu@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-03-03 17:29:27 Re: Shutdown indefinitely stuck due to unflushed FPI_FOR_HINT record
Previous Message Anthonin Bonnefoy 2026-03-03 17:11:02 Re: Shutdown indefinitely stuck due to unflushed FPI_FOR_HINT record