Re: Statistics Import and Export - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: Statistics Import and Export
Date
Msg-id CAKAnmmJ5S48AYbf0g+zjni+-mCHqstrE6kULsFFsv1MhuOL5iA@mail.gmail.com
Whole thread Raw
In response to Re: Statistics Import and Export  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Statistics Import and Export
List pgsql-hackers
On Thu, May 22, 2025 at 2:52 PM Jeff Davis <pgsql@j-davis.com> wrote:
 * The default for pg_restore is --no-statistics. That could cause a minor surprise if the user specifies --with-statistics for pg_dump and
not for pg_restore. An argument could be made that "if the stats are there, restore them", and I don't have a strong opinion about this point, but defaulting to --no-statistics seems more consistent with pg_dump.

Hm...somewhat to my own surprise, I don't like this. If it's in the dump, restore it.

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

pgsql-hackers by date:

Previous
From: Hari Krishna Sunder
Date:
Subject: Re: Statistics Import and Export
Next
From: Nathan Bossart
Date:
Subject: Re: Statistics Import and Export