Re: pg_dumpall --roles-only interact with other options - Mailing list pgsql-hackers

From jian he
Subject Re: pg_dumpall --roles-only interact with other options
Date
Msg-id CACJufxG1f=+WWwKwRD_PMR8YnZkV4HtgDy2YOHrHfcN7sTWXww@mail.gmail.com
Whole thread
In response to Re: pg_dumpall --roles-only interact with other options  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Tue, Mar 3, 2026 at 6:41 AM Nathan Bossart <nathandbossart@gmail.com> wrote:
>
> 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?
>
hi.

This is neater than my version, and overall it looks good to me.
Once this is committed, we can use CheckMutuallyExclusiveOpts in both
pg_dump.c and pg_restore.c.



--
jian
https://www.enterprisedb.com/



pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Re: Use pg_icu_unicode_version(void) instead of pg_icu_unicode_version()
Next
From: Chao Li
Date:
Subject: Re: DOC: fixes multiple errors in alter table doc