Hello all,

My name is Nadav Shatz, I’m the CTO at Tailor Brands and have been working with PostgreSQL in high-traffic, distributed environments for many years. Most of my focus has been on backend architecture, scaling, and performance optimization, and I’m a long-time user and admirer of the Postgres ecosystem.

I’d like to propose adding a feature to pgpool-II for recent access based routing in primary-replica setups. The idea is similar to what we’ve described in this article, and is also reflected in this pgcat PR. The core concept is to route read queries to the primary if they occur shortly after a write, reducing replica lag inconsistencies while still benefiting from read scaling.

How it would work (high-level):

Notes on behavior & ops:

I’ll prepare the code changes and send a patch/PR, but before diving in I wanted to check if anyone has objections, concerns, or preferred alternatives—particularly around parser hooks, shared memory use, or hot-reload mechanics in pgpool-II.

Thanks for considering,

--
Nadav Shatz
Tailor Brands | CTO