Re: Improve error reporting in 027_stream_regress test - Mailing list pgsql-hackers

From Brandon Tat
Subject Re: Improve error reporting in 027_stream_regress test
Date
Msg-id F52846E6-1774-4DF6-A94C-50C98CF0B338@gmail.com
Whole thread Raw
In response to Re: Improve error reporting in 027_stream_regress test  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Improve error reporting in 027_stream_regress test
List pgsql-hackers
Hi Michael,

Regarding the function regression_log_helper(), this function reads all the lines in the logs at line 219 of
src/test/recovery/t/027_stream_regress.pl.It seems wasteful to read the file again twice in read_file_ends().
Alternatively,we could read the file once within regression_log_helper() and index lines to emit the lines that we
want.

- Brandon & Ben


pgsql-hackers by date:

Previous
From: Kirill Reshke
Date:
Subject: Re: Fix crash during recovery when redo segment is missing
Next
From: Peter Smith
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication