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

Commits on Apr 28, 2025

  1. Fix assertion failure when decoding synced two-phase enabled slots.

    Current, during slot synchronization, it skips updating the confirmed_lsn if it
    detects that the catalog_xmin or restart_lsn of the synced slot has already
    surpassed those of the remote slot on the primary. This behavior poses a
    problem when two-phase commit is enabled on the remote slot. The lack of
    synchronization between the latest confirmed_lsn and two_phase_at may result in
    transactions prepared between the old confirmed_lsn and two_phase_at being
    unexpectedly decoded and sent to subscribers following a promotion.
    
    To fix this, when catalog_xmin or restart_lsn of the synced slot are ahead,
    we postpone syncing the slot configurations including two_phase_at
    until the remote slot's restart_lsn and catalog_xmin are ahead.
    Zhijie Hou authored and Commitfest Bot committed Apr 28, 2025
    Configuration menu
    Copy the full SHA
    c5df465 View commit details
    Browse the repository at this point in the history
  2. [CF 5664] v3 - Fix slot synchronization with two_phase decoding enabled

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