Re: pgsql: Transfer statistics during pg_upgrade.

2025-04-08 Thread Jeff Davis
On Tue, 2025-04-08 at 17:24 +1200, David Rowley wrote: > I was surprised to see when I did pg_dump -T just_this_table that I > also got statistics data for all tables in the database. -T means "exclude this pattern" I tried a few basic variations and they seemed to do what I expected: CREATE

Re: pgsql: Transfer statistics during pg_upgrade.

2025-04-07 Thread David Rowley
On Thu, 20 Feb 2025 at 22:29, Jeff Davis wrote: > Add support to pg_dump for dumping stats, and use that during > pg_upgrade so that statistics are transferred during upgrade. In most > cases this removes the need for a costly re-analyze after upgrade. I was surprised to see when I did pg_dump -T

Re: pgsql: Transfer statistics during pg_upgrade.

2025-02-21 Thread Andrew Dunstan
On 2025-02-20 Th 4:29 AM, Jeff Davis wrote: Transfer statistics during pg_upgrade. Small nit. I notice this commit has introduced a couple of dubious uses of "mututally exclusive": doc/src/sgml/ref/pg_dump.sgml:    This option is mutually exclusive to --data-only doc/src/sgml/ref/pg

pgsql: Transfer statistics during pg_upgrade.

2025-02-20 Thread Jeff Davis
Transfer statistics during pg_upgrade. Add support to pg_dump for dumping stats, and use that during pg_upgrade so that statistics are transferred during upgrade. In most cases this removes the need for a costly re-analyze after upgrade. Some statistics are not transferred, such as extended stati