Re: Statistics Import and Export

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, jian he <jian(dot)universality(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Stephen Frost <sfrost(at)snowman(dot)net>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, alvherre(at)alvh(dot)no-ip(dot)org
Subject: Re: Statistics Import and Export
Date: 2024-12-13 05:22:38
Message-ID: CADkLM=eD=k5WFsWK4pCm5j3LjHN7KYj+0USz8L-dN9xO0J2UFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Per offline conversation with Jeff, adding a --no-schema to pg_dump option
both for completeness (we already have --no-data and --no-statistics), but
users who previously got the effect of --no-schema did so by specifying
--data-only, which suppresses statistics as well.

0001-0005 - changes to pg_dump/pg_upgrade
0006 - attribute stats optimization
0007-0012 - vacuumdb

On Wed, Dec 11, 2024 at 10:49 PM Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
wrote:

> +1, assuming such an option is wanted at all. I suppose it should be
>> there for the unlikely (and hopefully impossible) case that statistics
>> are causing a problem during upgrade.
>>
>
> Here you go, rebased and re-ordered:
>
> 0001-0004 are the pg_dump/pg_upgrade related patches.
> 0005 is an optimization to the attribute stats update
> 0006-0011 is the still-up-for-debate vacuumdb changes.
>
> The patch for handling the as-yet-theoretical change to default relpages
> for partitioned tables got messy in the rebase, so I decided to just leave
> it out for now, as the change to relpages looks increasingly unlikely.
>
>
>

Attachment Content-Type Size
v35-0004-Add-no-schema-option-to-pg_dump-etc.patch text/x-patch 6.6 KB
v35-0001-Enable-dumping-of-table-index-stats-in-pg_dump.patch text/x-patch 34.6 KB
v35-0005-Add-statistics-flags-to-pg_upgrade.patch text/x-patch 3.8 KB
v35-0002-Add-no-data-option.patch text/x-patch 5.4 KB
v35-0003-Change-pg_upgrade-s-invocation-of-pg_dump-to-use.patch text/x-patch 1.9 KB
v35-0007-split-out-check_conn_options.patch text/x-patch 4.5 KB
v35-0006-Consolidate-attribute-syscache-lookups-into-one-.patch text/x-patch 4.4 KB
v35-0008-split-out-print_processing_notice.patch text/x-patch 2.4 KB
v35-0009-split-out-generate_catalog_list.patch text/x-patch 7.1 KB
v35-0012-Add-force-analyze-to-vacuumdb.patch text/x-patch 12.1 KB
v35-0011-Add-issues_sql_unlike-opposite-of-issues_sql_lik.patch text/x-patch 1.5 KB
v35-0010-preserve-catalog-lists-across-staged-runs.patch text/x-patch 6.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2024-12-13 05:27:38 DOCS: pg_createsubscriber wrong link?
Previous Message Bertrand Drouvot 2024-12-13 05:04:13 Re: Track the amount of time waiting due to cost_delay