Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5871~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5871
Choose a head ref
  • 2 commits
  • 3 files changed
  • 3 contributors

Commits on Aug 19, 2025

  1. vacuumdb: Make vacuumdb --analyze-only process partitioned tables.

    vacuumdb should follow the behavior of the underlying VACUUM and ANALYZE
    commands. When --analyze-only is used, it ought to analyze regular tables,
    materialized views, and partitioned tables, just as ANALYZE (with no explicit
    target tables) does. Otherwise, it should only process regular tables and
    materialized views, since VACUUM skips partitioned tables when no targets
    are given.
    
    Previously, vacuumdb --analyze-only skipped partitioned tables. This was
    inconsistent, and also inconvenient after pg_upgrade, where --analyze-only
    is typically used to gather missing statistics.
    
    This commit fixes the behavior so that vacuumdb --analyze-only also processes
    partitioned tables. As a result, both vacuumdb --analyze-only and
    ANALYZE (with no explicit targets) now analyze regular tables,
    partitioned tables, and materialized views, but not foreign tables.
    
    Because this is a nontrivial behavior change, it is applied only to master.
    
    Reported-by: Zechman, Derek S <[email protected]>
    Author: Laurenz Albe <[email protected]>
    Co-authored-by: Mircea Cadariu <[email protected]>
    Reviewed-by: Fujii Masao <[email protected]>
    Discussion: https://postgr.es/m/CO1PR04MB8281387B9AD9DE30976966BBC045A%40CO1PR04MB8281.namprd04.prod.outlook.com
    2 people authored and Commitfest Bot committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    2e810c5 View commit details
    Browse the repository at this point in the history
  2. [CF 5871] v3 - Make "vacuumdb --analyze-only" process partitioned tables

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5871
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CAHGQGwGje3mv5sOmyCJ0NroNPF8938OYCOHMJZbegTekccZZ=g@mail.gmail.com
    Author(s): Laurenz Albe
    Commitfest Bot committed Aug 19, 2025
    Configuration menu
    Copy the full SHA
    cbbf3ee View commit details
    Browse the repository at this point in the history
Loading