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.