pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrus <kobruleht2@hot.ee>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Niels Jespersen <NJN@dst.dk>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: SV: Log files polluted with permission denied error messages after every 10 seconds
Date: Wed, 17 Mar 2021 11:44:48 -0400
Message-ID: <3519321.1615995888@sss.pgh.pa.us> (raw)
In-Reply-To: <1d2706f2-6fbe-ed5f-22ed-56358c154053@hot.ee>
References: <1881481.1615240712@sss.pgh.pa.us>
	<af26b07f-1809-6229-9eff-61167723e61e@hot.ee>
	<a759c992bb0e4c53965323e4c25a480e@dst.dk>
	<94330326-5fa0-279a-937c-c4806e1fcd5a@hot.ee>
	<CA+hUKGLm_vYuqVPdB3dCW1Hms+ZeDosrrEiOzpL0orZCUE8gdA@mail.gmail.com>
	<2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee>
	<2b675d25-e86c-ea29-b02e-6bad5d55fbe3@hot.ee>
	<22ec98b1-cc2f-8e6a-f1d7-ee528237f2fb@hot.ee>
	<YFCH53atgYEUg4Uj@paquier.xyz>
	<78e6daee-0323-752d-c142-263a80154e18@hot.ee>
	<YFEupw8fHXQ/TMLI@paquier.xyz>
	<6538dfd4-9820-6e30-3eb3-5e035d8aba05@hot.ee>
	<7f13c1a55d615265364a888801ca3a7272df9c5a.camel@cybertec.at>
	<843d2c8b-2e7a-8d4f-940a-2e3283690026@hot.ee>
	<908a9bcb7a29d5a2edbe354d1a4b2c91d709f212.camel@cybertec.at>
	<1d2706f2-6fbe-ed5f-22ed-56358c154053@hot.ee>

Andrus <kobruleht2@hot.ee> writes:
> It looks like too small buffer is passed to NtQueryInformationFile .

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?

			regards, tom lane





view thread (34+ messages)  latest in thread

Message-ID: <3519321.1615995888@sss.pgh.pa.us>
Permalink:  ../3519321.1615995888@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3519321.1615995888@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kobruleht2@hot.ee, laurenz.albe@cybertec.at, michael@paquier.xyz, thomas.munro@gmail.com, NJN@dst.dk
  Subject: Re: Log files polluted with permission denied error messages after every 10 seconds
  In-Reply-To: <3519321.1615995888@sss.pgh.pa.us>
  References: <1881481.1615240712@sss.pgh.pa.us> <af26b07f-1809-6229-9eff-61167723e61e@hot.ee> <a759c992bb0e4c53965323e4c25a480e@dst.dk> <94330326-5fa0-279a-937c-c4806e1fcd5a@hot.ee> <CA+hUKGLm_vYuqVPdB3dCW1Hms+ZeDosrrEiOzpL0orZCUE8gdA@mail.gmail.com> <2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee> <2b675d25-e86c-ea29-b02e-6bad5d55fbe3@hot.ee> <22ec98b1-cc2f-8e6a-f1d7-ee528237f2fb@hot.ee> <YFCH53atgYEUg4Uj@paquier.xyz> <78e6daee-0323-752d-c142-263a80154e18@hot.ee> <YFEupw8fHXQ/TMLI@paquier.xyz> <6538dfd4-9820-6e30-3eb3-5e035d8aba05@hot.ee> <7f13c1a55d615265364a888801ca3a7272df9c5a.camel@cybertec.at> <843d2c8b-2e7a-8d4f-940a-2e3283690026@hot.ee> <908a9bcb7a29d5a2edbe354d1a4b2c91d709f212.camel@cybertec.at> <1d2706f2-6fbe-ed5f-22ed-56358c154053@hot.ee> <3519321.1615995888@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox