Add PostgreSQL::Test::Cluster::wait_for_event()
Michael Paquier <michael@paquier.xyz>
Add PostgreSQL::Test::Cluster::wait_for_event() Per a demand from the author and the reviewer of this commit, this adds to Cluster.pm a helper routine that can be used to monitor when a process reaches a wanted wait event. This can be used in combination with the module injection_points for the "wait" callback, though it is not limited to it as this monitors pg_stat_activity for a wait_event and a backend_type. Author: Bertrand Drouvot Reviewed-by: Andrey Borodin Discussion: https://postgr.es/m/ZeBB4RMPEZ06TcdY@ip-10-97-1-34.eu-west-3.compute.internal
Files
| Path | Change | +/− |
|---|---|---|
| src/test/perl/PostgreSQL/Test/Cluster.pm | modified | +23 −0 |
| src/test/recovery/t/041_checkpoint_at_promote.pl | modified | +1 −7 |
Discussion
- Injection points: some tools to wait and wake 46 messages · 2024-02-19 → 2024-03-06