Обсуждение: Re: SV: Log files polluted with permission denied error messages after every 10 seconds

Поиск
Список
Период
Сортировка

Re: SV: Log files polluted with permission denied error messages after every 10 seconds

От
Michael Paquier
Дата:
On Wed, Mar 17, 2021 at 11:44:48AM -0400, Tom Lane wrote:
> Oh!  That's an interesting theory; it'd explain why this broke recently,
> because we didn't use to use that function.  But how do you draw that
> conclusion from this stack trace?
>
> Anyway, if you've diagnosed this correctly, I bet the fault is in
> this bit in win32stat.c:
>
> #if _WIN32_WINNT < 0x0600
>     IO_STATUS_BLOCK ioStatus;
>     FILE_STANDARD_INFORMATION standardInfo;
> #else
>     FILE_STANDARD_INFO standardInfo;
> #endif
>
> Maybe the version cutoff is wrong?  Maybe we have to do this with
> a run-time version check, instead of statically compiling it?

All the reports received are on 13.1 and 13.2.  This code is new as of
bed9075, no?
--
Michael

Вложения

Re: SV: Log files polluted with permission denied error messages after every 10 seconds

От
Tom Lane
Дата:
Michael Paquier <michael@paquier.xyz> writes:
> On Wed, Mar 17, 2021 at 11:44:48AM -0400, Tom Lane wrote:
>> Oh!  That's an interesting theory; it'd explain why this broke recently,
>> because we didn't use to use that function.  But how do you draw that
>> conclusion from this stack trace?

> All the reports received are on 13.1 and 13.2.  This code is new as of
> bed9075, no?

Ah, right.  But then this theory must be nonsense, because we did
not use NtQueryInformationFile() in v13.

            regards, tom lane