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

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: Niels Jespersen <NJN(at)dst(dot)dk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Paquier <michael(at)paquier(dot)xyz>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: SV: Log files polluted with permission denied error messages after every 10 seconds
Date: 2021-03-12 01:27:14
Message-ID: CA+hUKGKWGKe9X47WukpD3VJ6MsVJBTLz9U1wQR7zTOW6rW4FgQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Andrus,

On Thu, Mar 11, 2021 at 2:21 AM Andrus <kobruleht2(at)hot(dot)ee> wrote:
> Windows Resource manger shows that wal files are used by large number of postgres processes:
>
> postgres.exe 22656 File C:\Program Files\PostgreSQL\13\data\pg_wal\000000010000000A00000075
> postgres.exe 30788 File C:\Program Files\PostgreSQL\13\data\pg_wal\000000010000000A00000075
> postgres.exe 14144 File C:\Program Files\PostgreSQL\13\data\pg_wal\000000010000000A00000074
...

This is normal -- postgres.exe holds open various files it's
interested in, and it's supposed to be OK for them to be renamed or
unlinked at any time by another process because they are opened with
special FILE_SHARE_XXX flags that allow that. That list doesn't show
the open flags, but it looks like nothing *else* has the files open.
Usually when these types of errors are reported on the mailing list,
it turns out to be due to some other program opening the file without
those flags.

It's also possible that this is a real permissions problem, and not a
sharing violation. I'd definitely look into this feedback:

On Tue, Mar 9, 2021 at 11:19 PM Thomas Kellerer <shammat(at)gmx(dot)net> wrote:
> The data directory should not be stored in "C:\Program File"s on Windows.
>
> I wouldn't be surprised if "Program Files" has some additional security settings that come into play here.
>
> %ProgramData% is a better location for the data directory.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brent Wood 2021-03-12 03:46:58 hstore each() function - returned order??
Previous Message Stacey Haysler 2021-03-11 17:58:51 Re: Code of Conduct Russian Translation - Revised March 5, 2021