Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Mircea Cadariu <cadariu.mircea@gmail.com>
From: Mircea Cadariu <cadariu.mircea@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-29T12:45:03Z
Lists: pgsql-hackers
Hi, Thanks for the patch updates. On 26/12/2025 10:28, Fujii Masao wrote: > Maybe it's better to use slurp_file(). We already have wait_for_log() to > wait for a message in the cluster's log file, but there's no helper function > to wait for specific content to appear in an arbitrary file. > > To support waiting for output in pg_recvlogical's output file, > I added a new helper that uses slurp_file() (see the attached 0002 patch). > I also updated the 0003 patch (the pg_recvlogical reconnection test) to > use this helper instead of pg_read_file(). Thoughts? Agreed, nice addition. I applied the v3-000* patch set and it builds successfully and passes the tests on my laptop. However the CI seems not completely happy yet, with previous 2 runs not green for Windows. Could it be there's an issue with executing the test on Windows? -- Thanks, Mircea Cadariu