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/5817~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/5817
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 3, 2025

  1. parallel pg_restore: move offset-building phase to before forking

    A pg_dump custom format archive without offsets in the table of
    contents, is usually generated when pg_dump writes to stdout instead of
    a file. When doing parallel pg_restore (-j) from such a file, every
    worker process was scanning the full archive sequentially, in order to
    build the offset table and find the parts assigned to restore. This led
    to the worker processes competing for I/O.
    
    This patch moves this offset-table building phase to the parent process,
    before forking the worker processes.
    
    The upside is that we now have only one extra scan of the file.
    And this scan happens without other competing I/O, so it completes
    faster.
    
    The downside is that there is a delay before spawning the children and
    starting assigning jobs to them.
    jimis authored and Commitfest Bot committed Nov 3, 2025
    Configuration menu
    Copy the full SHA
    f4701a0 View commit details
    Browse the repository at this point in the history
  2. [CF 5817] v3 - parallel pg_restore: move offset-building phase to bef…

    …ore forking
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5817
    
    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/[email protected]
    Author(s): Dimitrios Apostolou
    Commitfest Bot committed Nov 3, 2025
    Configuration menu
    Copy the full SHA
    30c8494 View commit details
    Browse the repository at this point in the history
Loading