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/5959~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/5959
Choose a head ref
  • 2 commits
  • 7 files changed
  • 2 contributors

Commits on Oct 30, 2025

  1. Add remote statistics fetching to postgres_fdw.

    This adds the ability to fetch and import statistics from a remote
    server table table rather than fetching the data or data sample from
    that table.
    
    This is managed via two new options, fetch_stats and remote_analyze,
    both are available at the server level and table level. If fetch_stats
    is true, then the ANALYZE command will first attempt to fetch statistics
    from the remote table and import those statistics locally.
    
    If remote_analyze is true, and if the first attempt to fetch remote
    statistics found no attribute statistics, then an attempt will be made
    to ANALYZE the remote table before a second and final attempt to fetch
    remote statistics.
    
    If no statistics are found, then ANALYZE will fall back to the normal
    behavior of sampling and local analysis.
    
    This operation will only work on remote relations that can have stored
    statistics: tables, partitioned tables, and materialized views. If the
    remote relation is a view then remote fetching/analyzing is just wasted
    effort and the user is better of setting fetch_stats to false for that
    table.
    
    The default for fetch_stats is true at both server and table level. The
    default for remote_analyze is false at both the server and table level.
    In both cases, setting a value at the table level will override the
    corresponding server-level setting.
    coreyhuinker authored and Commitfest Bot committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    2613f7a View commit details
    Browse the repository at this point in the history
  2. [CF 5959] v3 - Import Statistics in postgres_fdw before resorting to …

    …sampling.
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5959
    
    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/CADkLM=cVc-KUAqcm1yoDkGwMrcgCvxY3WAMpaRZVLtO9sbc+kg@mail.gmail.com
    Author(s): Corey Huinker
    Commitfest Bot committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    4118392 View commit details
    Browse the repository at this point in the history
Loading