Add function to pump IPC process until string match

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 6da65a3f9a9deae4fdcc768c612b0c8f52759f75
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2022-02-23T13:22:16Z
Releases: 15.0
Add function to pump IPC process until string match

Refactor the recovery tests to not carry a local duplicated copy of
the pump_until function which pumps a process until a defined string
is seen on a stream. This reduces duplication, and is in preparation
for another patch which will also use this functionality.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion https://postgr.es/m/YgynUafCyIu3jIhC@paquier.xyz

Files