From: Andrus <kobruleht2@hot.ee>
To: Michael Paquier <michael@paquier.xyz>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Niels Jespersen <NJN@dst.dk>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
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 01:09:24 +0200
Message-ID: <6538dfd4-9820-6e30-3eb3-5e035d8aba05@hot.ee> (raw)
In-Reply-To: <YFEupw8fHXQ/TMLI@paquier.xyz>
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>
Hi!
>Those ten seconds are coming from RemoveXlogFile(), where pgrename()
> loops 100 times for 100ms before giving up. So something holding up
> the file's handle prevents the removal to happen.
I tried sysinternals
handle pg_wal
It shows that only postgres processes have opened files in pg_wal directory:
postgres.exe pid: 11800 type: File CC0: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000012000000B7
postgres.exe pid: 11800 type: File 12B8: C:\Program
Files\PostgreSQL\13\data\pg_wal
postgres.exe pid: 23904 type: File 1134: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000012000000B5
postgres.exe pid: 20908 type: File 17C: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000012000000B7
postgres.exe pid: 29892 type: File C08: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000011000000F4
...
postgres.exe pid: 34260 type: File C18: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000011000000FC
postgres.exe pid: 34484 type: File C48: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000011000000FC
postgres.exe pid: 38740 type: File 180: C:\Program
Files\PostgreSQL\13\data\pg_wal\0000000100000012000000B7
> Attached is the
> patch that should be tested, based on the suspected commit. There are
> actually two scenarios to worry about:
> - Check that the code of 13.2 compiled manually is enough to see the
> failure.
> - Check that once the patch attached is applied makes the failure go
> away.
>
Intel server has
PostgreSQL 13.1, compiled by Visual C++ build 1914, 64-bit
and AMD server
PostgreSQL 13.2, compiled by Visual C++ build 1914, 64-bit
Should I try install Visual C++ , compile and replace postgres.exe file
in AMD server.
> I am trying on my side to reproduce the problem in a more reliable
> way. One thing I saw breaking in my setup is archive_command, where
> it was not able to archive a segment with a simple copy, failing with
> the same error as yours.
wal archiving is not used on those servers.
> In one of those servers, do you have in pg_wal/ some files named
> xlogtemp.N? N is an integer that would be the PID of the process that
> generated it.
No. Intel server has 4 files with .deleted extension. AMD server has no
.deleted files. It has probably lower traffic.
Andrus.
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: kobruleht2@hot.ee, michael@paquier.xyz, thomas.munro@gmail.com, NJN@dst.dk, tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at
Subject: Re: Log files polluted with permission denied error messages after every 10 seconds
In-Reply-To: <6538dfd4-9820-6e30-3eb3-5e035d8aba05@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>
* 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