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

Commits on Jan 17, 2026

  1. Refactor replication origin state reset helpers.

    Factor out common logic for clearing replorigin_session_* variables
    into a dedicated helper function, replorigin_xact_clear().
    
    This removes duplicated assignments of these variables across multiple
    call sites, and makes the intended scope of each reset explicit.
    
    Author: Chao Li <lic@highgo.com>
    Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
    Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
    Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
    Discussion: https://postgr.es/m/CAEoWx2=pYvfRthXHTzSrOsf5_FfyY4zJyK4zV2v4W=yjUij1cA@mail.gmail.com
    Chao Li (Evan) authored and Commitfest Bot committed Jan 17, 2026
    Configuration menu
    Copy the full SHA
    5dbff2b View commit details
    Browse the repository at this point in the history
  2. Consolidate replication origin session globals into a single struct.

    This commit moves the separate global variables for replication origin
    state into a single RepOriginXactState struct. This groups logically
    related variables, which improves code readability and simplifies
    state management (e.g., resetting the state) by handling them as a
    unit.
    
    Author: Chao Li <lic@highgo.com>
    Suggested-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
    Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
    Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
    Discussion: https://postgr.es/m/CAEoWx2=pYvfRthXHTzSrOsf5_FfyY4zJyK4zV2v4W=yjUij1cA@mail.gmail.com
    Chao Li (Evan) authored and Commitfest Bot committed Jan 17, 2026
    Configuration menu
    Copy the full SHA
    dc60fae View commit details
    Browse the repository at this point in the history
  3. [CF 6345] v11 - Refactor replication origin state reset helpers

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6345
    
    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/CAEoWx2mw+LVy9ZdZ-vHFDrzdeyt-xUTeVUPW7JQE76ry9Vq+_g@mail.gmail.com
    Author(s): Chao Li
    Commitfest Bot committed Jan 17, 2026
    Configuration menu
    Copy the full SHA
    8572b31 View commit details
    Browse the repository at this point in the history
Loading