Re: pg_dump --with-* options

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump --with-* options
Date: 2025-06-25 14:36:02
Message-ID: aFwJUgVuoqJjedfD@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 24, 2025 at 06:14:55PM -0400, Greg Sabino Mullane wrote:
> On Wed, Jun 18, 2025 at 11:43 AM Nathan Bossart <nathandbossart(at)gmail(dot)com>
> wrote:
>> IIUC the current proposal is to:
>>
>> * Dump/restore stats by default.
>> * Keep the --no-statistics, --no-schema, and --no-data options.
>> * Keep the --statistics-only, --schema-only, and --data-only options.
>> * Remove the --with-statistics, --with-schema, and --with-data options.
>
> This is so close to ideal. It's just that the first bullet should be "off
> by default" :)

If we did that, the only way to dump statistics would be --statistics-only,
right? You wouldn't be able to include statistics along with other
things.

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-06-25 14:48:12 Re: pg_dump --with-* options
Previous Message Daniel Gustafsson 2025-06-25 14:20:59 Re: No error checking when reading from file using zstd in pg_dump