Re: bug: pg_dumpall with --data-only and --clean options is giving an error after some dump

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Mahendra Singh Thalor <mahi6run@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-15T11:58:31Z
Lists: pgsql-hackers
On 2026-03-14 Sa 3:18 PM, Mahendra Singh Thalor wrote:
> Hi all,
>
> I was doing some tests with pg_dump, pg_dumpall and pg_restore tools. 
> With "pg_dumpall --data-only --clean", we are reporting an error after 
> dumping some data.


Hmm, this looks like behaviour that goes a long way back. Should we 
backpatch this fix?


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




Commits

  1. pg_dumpall: Fix handling of incompatible options.