Thread

  1. Automating Failover Resync & Re-Attach in pgpool2

    VASUKI M <vasukim1992002@gmail.com> — 2025-10-10T12:17:09Z

    Dear PostgreSQL and Pgpool Communities,
    
    While working with PostgreSQL failover scenarios, I noticed that the
    process of re-attaching a standby node after a failover can be somewhat
    manual and prone to delays, especially in production environments.
    
    I explored automating this process using a combination of *pg_rewind* and *WAL
    replay*, which allows a standby node to resynchronize and re-attach to the
    primary automatically after a failover. This could reduce downtime and
    simplify management of failover nodes in high-availability setups.
    
    Automatically resynchronize after failover
    
    Reduce downtime and ensure quicker recovery
    
    Minimize manual operations and errors
    
    Maintain consistent cluster state with less administrative overhead
    
    I believe that integrating such an automated resync and re-attach feature
    into *Pgpool-II* could be very valuable for PostgreSQL users, potentially
    as an enhancement in a future release.
    
    I wanted to share this idea with the community to get feedback,
    suggestions, or any pointers on existing work that may align with this. I
    am happy to contribute more details