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

Commits on Apr 30, 2025

  1. Keep WAL segments by slot's flushed restart LSN

    The slot data is flushed to the disk at the beginning of checkpoint. If
    an existing slot is advanced in the middle of checkpoint execution, its
    advanced restart LSN is taken to calculate the oldest LSN for WAL
    segments removal at the end of checkpoint. If the node is restarted just
    after the checkpoint, the slots data will be read from the disk at
    recovery with the oldest restart LSN which can refer to removed WAL
    segments.
    
    The patch introduces a new in-memory state for slots -
    flushed_restart_lsn which is used to calculate the oldest LSN for WAL
    segments removal. This state is updated every time with the current
    restart_lsn at the moment, when the slot is saving to disk.
    Vitaly Davydov authored and Commitfest Bot committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    183f0b0 View commit details
    Browse the repository at this point in the history
  2. Fix src/recovery/t/001_stream_rep.pl

    Vitaly Davydov authored and Commitfest Bot committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    3e6c7b1 View commit details
    Browse the repository at this point in the history
  3. [CF 5627] Fix oldest LSN calculation for WAL segments removal when sl…

    …ots are advancing during checkpoint
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5627
    
    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/1538a2-67c5c700-7-77ec5a80@179382871
    Author(s): Vitaly Davydov
    Commitfest Bot committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    5bfb3e5 View commit details
    Browse the repository at this point in the history
Loading