Thanks to visit codestin.com
Credit goes to github.com

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

Commits on Dec 27, 2025

  1. Fix unintended drop of active replication origins

    Currently, if two backends configure the same replication origin and one backend
    resets it first, the acquired_by flag is cleared without recognizing the active
    usage by the first backend. This can result in the unintended dropping of the
    origin, potentially leading to issues if the shared memory of the dropped origin
    is reused for a newly created origin. Such reuse could cause unpredictable
    advancement of a different slot by the remaining backend holding the memory of
    the dropped origin.
    
    This commit addresses the issue by introducing a reference count for replication
    origins. The count is incremented when a backend sets up the origin and
    decremented upon a reset. As a result, the replication origin is only dropped
    when the reference count reaches zero.
    Zhijie Hou authored and Commitfest Bot committed Dec 27, 2025
    Configuration menu
    Copy the full SHA
    4bec128 View commit details
    Browse the repository at this point in the history
  2. [CF 6337] v1 - add new parameter to pg_replication_origin_session_setup

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6337
    
    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/TY4PR01MB169077EE72ABE9E55BAF162D494B5A@TY4PR01MB16907.jpnprd01.prod.outlook.com
    Author(s): Zhijie Hou
    Commitfest Bot committed Dec 27, 2025
    Configuration menu
    Copy the full SHA
    6beb9f2 View commit details
    Browse the repository at this point in the history
Loading