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: 5721e54
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: 6866864
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Mar 17, 2025

  1. pg_combinebackup: Add -k, --link option.

    This is similar to pg_upgrade's --link option, except that here we won't
    typically be able to use it for every input file: sometimes we will need
    to reconstruct a complete backup from blocks stored in different files.
    However, when a whole file does need to be copied, we can use an
    optimized copying strategy: see the existing --clone and
    --copy-file-range options and the code to use CopyFile() on Windows.
    This commit adds a new strategy: add a hard link to an existing file.
    Making a hard link doesn't actually copy anything, but it makes sense
    for the code to treat it as doing so.
    
    This is useful when the input directories are merely staging directories
    that will be removed once the restore is complete. In such cases, there
    is no need to actually copy the data, and making a bunch of new hard
    links can be very quick. However, it would be quite dangerous to use it
    if the input directories might later be reused for any other purpose,
    since starting postgres on the output directory would destructively
    modify the input directories. For that reason, using this new option
    causes pg_combinebackup to emit a warning about the danger involved.
    
    Author: Israel Barth Rubio <[email protected]>
    Co-authored-by: Robert Haas <[email protected]> (cosmetic changes)
    Reviewed-by: Vignesh C <[email protected]>
    robertmhaas authored and Commitfest Bot committed Mar 17, 2025
    Configuration menu
    Copy the full SHA
    aba0520 View commit details
    Browse the repository at this point in the history
  2. [CF 5508] v7 - Add -k/--link option to pg_combinebackup

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5508
    
    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/CA+TgmoaEFsYHsMefNaNkU=2SnMRufKE3eVJxvAaX=OWgcnPmPg@mail.gmail.com
    Author(s): Israel Barth
    Commitfest Bot committed Mar 17, 2025
    Configuration menu
    Copy the full SHA
    6866864 View commit details
    Browse the repository at this point in the history
Loading