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

Commits on Dec 15, 2025

  1. Introduce a new GUC 'wal_sender_shutdown_mode'.

    Previously, at shutdown, walsender processes were always waiting to send all
    pending data and ensure that all data is flushed in remote node. But in some cases
    an unexpected wait may be unacceptable. For example, in logical replication,
    apply_workers may hang on locks for some time, excluding the possibility of
    sender's shutdown.
    
    New guc allows to change shutdown mode of walsenders without changing
    default behavior.
    
    The shutdown modes are:
    
    1) 'wait_flush' (the default). In this mode, the walsender will wait for all
    WALs to be flushed on the receiver side, before exiting the process.
    
    2) 'immediate'. In this mode, the walsender will exit without confirming the
    remote flush. This may break the consistency between sender and receiver.
    This mode might be useful for a system that has a high-latency network (to
    reduce the amount of time for shutdown), or to allow the shutdown of
    publisher even when when the subscriber's apply_worker is waiting for any
    locks to be released.
    
    Author: Andrey Silitskiy
    Co-authored by: Hayato Kuroda
    Discussion: https://postgr.es/m/TYAPR01MB586668E50FC2447AD7F92491F5E89%40TYAPR01MB5866.jpnprd01.prod.outlook.com
    a.silitskiy authored and Commitfest Bot committed Dec 15, 2025
    Configuration menu
    Copy the full SHA
    61b5ff2 View commit details
    Browse the repository at this point in the history
  2. [CF 6234] v2 - Introduce a new GUC to allow logical walsender to shut…

    …down immediately without waiting for a response from the client.
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6234
    
    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/[email protected]
    Author(s): Andrey Silitskiy
    Commitfest Bot committed Dec 15, 2025
    Configuration menu
    Copy the full SHA
    cc6c278 View commit details
    Browse the repository at this point in the history
Loading