Re: Improve error reporting in 027_stream_regress test
От | Andres Freund |
---|---|
Тема | Re: Improve error reporting in 027_stream_regress test |
Дата | |
Msg-id | pilcuplleg3o5l4zzjerpz4xthqasmu7b3tenp6yuj2l7sfi2e@w7za3ejtcz6q обсуждение исходный текст |
Ответ на | Re: Improve error reporting in 027_stream_regress test (Michael Paquier <michael@paquier.xyz>) |
Список | pgsql-hackers |
Hi, On 2025-07-29 10:46:16 +0900, Michael Paquier wrote: > On Mon, Jul 28, 2025 at 03:34:06PM +0300, Nazir Bilal Yavuz wrote: > > I wanted to show what is in my mind, v4 is attached. Summary is: > > > > - 0001 introduces the read_file_ends() function, which reads lines > > from either the beginning or end of a given file. It includes a > > force_line_count argument that, when set to true, ensures that the > > specified number of lines is read from the file regardless of whether > > the PG_TEST_FILE_READ_LINES environment variable is set. > > Hmm. I am really wondering if 'head' and 'tail' should just be > shortcuts of some regexp patterns based on ^ and $, and that we could > allow the subroutine to use a regexp for the pattern matching. I'll > look at that in details, but it may take me a couple of days before > getting down to it. I don't really get what the point of designing that mechanism is before we have a usecase. If we need it, we can expand it at that time. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления: