Re: Refactor handling of "-only" options in pg_dump, pg_restore

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: jian he <jian.universality@gmail.com>
Cc: Zsolt Parragi <zsolt.parragi@percona.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-09T16:38:47Z
Lists: pgsql-hackers
On Mon, Mar 09, 2026 at 04:15:42PM +0800, jian he wrote:
> Most of the code changes are very similar to
> https://git.postgresql.org/cgit/postgresql.git/commit/?id=b2898baaf7e40a187de5b0134d53d944b38209cd
> The change in pg_restore.c is more invasive, so I separated it from pg_dump.

Committed, thanks.

-- 
nathan



Commits

  1. pg_{dump,restore}: Refactor handling of conflicting options.

  2. pg_dumpall: Fix handling of conflicting options.