Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lByRJ-0000DN-1p for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 11:22:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lByRI-0005zy-0U for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 11:22:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lByRH-0005yD-N8 for pgsql-general@lists.postgresql.org; Tue, 16 Feb 2021 11:22:43 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lByRF-000801-2h for pgsql-general@lists.postgresql.org; Tue, 16 Feb 2021 11:22:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613474557; bh=ZV+hEpC4Yw2juB2BWaeAbBN0taA9RePQ2y85LmSoUB0=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=k9HZpvXmeSe3KoEOvtZ8+P9NdY7qOT1v1qtEhxiBZXY3qCqlr4ZGIf49W8bKzO5Mp I3LkhGfoUeZvHRw4TEP0yIBqRw0aA8s4IcAilPZu+8d/ai5l37yWljVCOmboL0tL5G U1MIreynSdIEnmiVnKNhZPFsD5dXmtkPL+EUberc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.1.34.217] ([185.40.248.10]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MatRZ-1li0062Zjf-00cQuR for ; Tue, 16 Feb 2021 12:22:37 +0100 Subject: Re: PostgreSQL occasionally unable to rename WAL files (NTFS) To: pgsql-general@lists.postgresql.org References: <095ccf8d-7f58-d928-427c-b17ace23cae6@burgess.co.nz> <201359951.20210211163311@am-soft.de> From: Thomas Kellerer Message-ID: Date: Tue, 16 Feb 2021 12:22:36 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:a9IkTpZ5USUSg6zm2R4WHmEp+OrhAAh1zmFZI88DQuYe7HIPTAH muVZbjkE91YyJE8yf1g+fEeFTfiuRbdQyrweKYqFGkagDoD5m3Tt5gh9/yxoAEw8lf8Y9m5 TSMRVX/mxK5eD7sDODR+hq22ll/ELDDxq7qMPpeS5VxD7tgKZE9I4JDU9QsjkkN62AQOIzk /82Mj1S5jSL9xl4b3y/cg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:OBw2YkWYS2c=:YL6w9o1BMcrrxfkAWet3A5 PHsMT6qRMo0mvVAXoDrCFFkHxXeQj9Gf3tRTCsljcOrIegO0ql+8ZZ/ZkTOOX76a9J0dI/cg9 vHhIzuajSWKrmP0kl8vTunJF8mX9pHgSp2xnkvoMVN7s1Le26/+sSl/9ZLUKLaC3I7W2O8h9w 0wrnr+o5cmtPn06DuKCKQl5WIeMYrTibV85OkcDcgaEI5YDESFq4os9FC//NR0VRxr0ZbTUPb efyTBxQMUrY9tGBk6gOG0FU9/Vymkf7mHwkV4sq5pUmK2sRFl7+SKfc/zpCU4RJJsnyYqXv9Q NDesmR53Q45JtTrcM5zsRn1Pnd7i1oSEs9uDReAM0eazol1PVZqvY0CBjHtI2zFtb++Xxjym9 J+AKZUkVRT2xUFHP+RRKoMBcX2WYL816WbzS77RESLn2PdivCtqo+2zTcImtTUBLoQ8R72x9P xIGECxsKX18LifzkEIbjAXT6BJ6ReOhuuFVP8ZtpMNmCmRjMjMxukN8OakB3iD4YWvvdG2kiI SOv29Sm8zFFl5gHBT8bnmfxgswurg278uBwKq+mOaAc0607sAzTsOt6gbRQQXgYvo0F6qTC9S tiBR6QeBSq6W3kxEnl8s+Eef7NYmdbd2+Q8V/9vi1kNM2AaDXVvW5ZyQK4lfxvGqfUzY4KWVr atXDkz3cz2Ydq1CEJy3G4CZ4o8B51Qz+EtoXaX8Sy6pjd5w8Db924oaTxFnJk6XMwzBXOmPtZ gjybVGDUUFcqOsOgwYQ4/xunlHlXEH3D+jYZAI8tTVAvKqLCL7PLRTXdvj6mq6RsgLp2OUklW YZ9KC0RzlHHHxamb6IB7InK3t7dCisfGCPdMpYvju9aL3lZYS05l0o7E4Z5ujO+KdbQTUEriu tkfEQA5qsz4YzmLylzWw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Guy Burgess schrieb am 15.02.2021 um 11:52: > The mystery now is that the only process logged as touching the > affected WAL files is postgres.exe (of which there are many separate > processes). Could it be that one of the postgres.exe instances is > holding the affected WAL files in use after another postgres.exe > instance has flagged the file as deleted? (or to put it the other > way, a postgres.exe instance is flagging the file as deleted while > another instance still has an open handle to the file)? If it is some > other process such as the indexer (disabled) or AV (excluded from > pgdata) is obtaining a handle on the WAL files, it isn't being logged > by ProcMon. My first suspect is always the anti-virus on Windows when things like that happen with Postgres. Maybe the AV configuration was changed and pgdata is no longer excluded. Thomas