Re: Restore check_mut_excl_opts, usage in pg_restore and pg_dumpall

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, nathan(at)postgresql(dot)org
Subject: Re: Restore check_mut_excl_opts, usage in pg_restore and pg_dumpall
Date: 2026-12-02 01:57:26
Message-ID: 77F9C9E5-C549-44FC-9BB7-7CEFB5672D10@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Dec 2, 2026, at 06:35, Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
>
> On Sat, Jul 25, 2026 at 11:03:57PM +0900, Fujii Masao wrote:
>> I'm wondering about backpatching. Patch 0003 fixes undefined behavior
>> introduced by check_mut_excl_opts(), so it seems appropriate to
>> backpatch it to v19. Patches 0001 and 0002 are mostly refactoring,
>> but they restore the v19-era cleanup that was lost when the pg_dumpall
>> non-text-format support was reverted, so backpatching those to v19 also
>> seems OK to me. Thoughts?
>
> I've committed (and back-patched) 0003, and I've attached a new version of
> the remaining patches. At this point, since 19.0 is now released, I don't
> think we should back-patch these. I plan to commit them within the next
> couple of days.
>
> --
> nathan
> <v3-0001-pg_dumpall-Fix-handling-of-conflicting-options.patch><v3-0002-pg_restore-Refactor-handling-of-conflicting-optio.patch>

Overall v3 looks good to me.

Only a nit comment on 0002:
```
/* Should get at most one of -d and -f, else user is confused */
```

This comment is retained from the original code, but 0002 adds new comments in a consistent form, like:
```
/* --dbname and --restrict-key are incompatible */
```

So, for consistency, maybe update the old comment to:
```
/* --dbname and --file are incompatible */
```

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-12-02 02:12:58 Re: [PATCH] Reuse slot helpers in pg_get_replication_slots and slot copy
Previous Message Hayato Kuroda (Fujitsu) 2026-12-02 01:55:39 RE: logical decoding: removing change_useless_for_repack()