Re: Intermittent failure with t/003_logical_slots.pl test on windows

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема Re: Intermittent failure with t/003_logical_slots.pl test on windows
Дата
Msg-id 20231102.152227.1181847439819636587.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответ на Re: Intermittent failure with t/003_logical_slots.pl test on windows  (vignesh C <vignesh21@gmail.com>)
Ответы Re: Intermittent failure with t/003_logical_slots.pl test on windows  (Nisha Moond <nisha.moond412@gmail.com>)
Список pgsql-hackers
At Tue, 31 Oct 2023 18:11:48 +0530, vignesh C <vignesh21@gmail.com> wrote in 
> Few others are also facing this problem with similar code like in:
> https://stackoverflow.com/questions/15882799/fgets-returning-error-for-file-returned-by-popen

I'm inclined to believe that the pipe won't enter the EOF state until
the target command terminates (then the top-level cmd.exe). The target
command likely terminated prematurely due to an error before priting
any output.

If we append "2>&1" to the command line, we can capture the error
message through the returned pipe if any. Such error messages will
cause the subsequent code to fail with an error such as "unexpected
string: 'the output'". I'm not sure, but if this is permissive, the
returned error messages could potentially provide insight into the
underlying issue, paving the way for a potential solution.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Xiang Gao
Дата:
Сообщение: RE: CRC32C Parallel Computation Optimization on ARM
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Is this a problem in GenericXLogFinish()?