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: 2fd3e2f
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: 63ae47f
Choose a head ref
  • 2 commits
  • 6 files changed
  • 3 contributors

Commits on Mar 31, 2025

  1. Improve error message when standby does accept connections.

    Even after reaching the minimum recovery point, if there are long-lived
    write transactions with 64 subtransactions on the primary, the recovery
    snapshot may not yet be ready for hot standby, delaying read-only
    connections on the standby. Previously, when read-only connections were
    not accepted due to this condition, the following error message was logged:
    
        FATAL:  the database system is not yet accepting connections
        DETAIL:  Consistent recovery state has not been yet reached.
    
    This DETAIL message was misleading because the following message was
    already logged in this case:
    
        LOG:  consistent recovery state reached
    
    This contradiction, i.e., indicating that the recovery state was consistent
    while also stating it wasn’t, caused confusion.
    
    This commit improves the error message to better reflect the actual state:
    
        FATAL: the database system is not yet accepting connections
        DETAIL: Recovery snapshot is not yet ready for hot standby.
        HINT: To enable hot standby, close write transactions with more than 64 subtransactions on the primary server.
    
    To implement this, the commit introduces a new postmaster signal,
    PMSIGNAL_RECOVERY_CONSISTENT. When the startup process reaches
    a consistent recovery state, it sends this signal to the postmaster,
    allowing it to correctly recognize that state.
    
    Since this is not a clear bug, the change is applied only to the master
    branch and is not back-patched.
    
    Author: Atsushi Torikoshi <[email protected]>
    Co-authored-by: Fujii Masao <[email protected]>
    Reviewed-by: Yugo Nagata <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    2 people authored and Commitfest Bot committed Mar 31, 2025
    Configuration menu
    Copy the full SHA
    dbc3c05 View commit details
    Browse the repository at this point in the history
  2. [CF 5567] v6 - Change log level for notifying hot standby is waiting …

    …non-overflowed snapshot
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5567
    
    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): Atsushi Torikoshi
    Commitfest Bot committed Mar 31, 2025
    Configuration menu
    Copy the full SHA
    63ae47f View commit details
    Browse the repository at this point in the history
Loading