Helper functions for wait_for_catchup() in Cluster.pm
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-01-17T10:48:19Z
Lists: pgsql-hackers
Attachments
- v1-0001-wait_for_catchup_helper_functions.patch (text/plain) patch v1-0001
Hi hackers, please find attached a patch proposal to define $SUBJECT. The idea has been raised in [1], where we are adding more calls to wait_for_catchup() in 'replay' mode. The current code already has 25 of those, so the proposed patch is defining a new wait_for_replay_catchup() function. While at it, adding also: - wait_for_write_catchup(): called 5 times - wait_for_sent_catchup() and wait_for_flush_catchup() for consistency purpose (while there is currently no occurrences of wait_for_catchup() in 'sent' or 'flush' mode.). Looking forward to your feedback, Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com [1]: https://www.postgresql.org/message-id/20230106034036.2m4qnn7ep7b5ipet%40awork3.anarazel.de
Commits
-
Add wait_for_replay_catchup wrapper to Cluster.pm
- a1acdacada4a 16.0 landed