Automating Failover Resync & Re-Attach in pgpool2

From: VASUKI M <vasukim1992002(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: bharatdb(at)cdac(dot)in, pgpool-general(at)lists(dot)postgresql(dot)org
Subject: Automating Failover Resync & Re-Attach in pgpool2
Date: 2025-10-10 12:17:09
Message-ID: CACTYHzgopGRZmWeWPLXKw=McAQigLC51+mqsmyULypKhfMSJ_w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-general pgsql-bugs

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

Responses

Browse pgpool-general by date

  From Date Subject
Next Message Terence Un 2025-10-14 04:47:12 About load balance mode in pgpool
Previous Message Bo Peng 2025-10-10 06:57:39 Re: Support for RHEL/Rocky Linux 10

Browse pgsql-bugs by date

  From Date Subject
Next Message Marko Tiikkaja 2025-10-10 14:52:59 Re: [BUGS] BUG #11500: PRIMARY KEY index not being used
Previous Message Álvaro Herrera 2025-10-10 11:14:19 Re: BUG #19082: Failing assert in index scan