Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqKDx-0000U0-Dj for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Sep 2017 14:25:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dqKDx-0007jL-08 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Sep 2017 14:25:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dqKDF-0006PC-6m for pgsql-bugs@postgresql.org; Fri, 08 Sep 2017 14:24:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dqKDB-0000ep-Si for pgsql-bugs@postgresql.org; Fri, 08 Sep 2017 14:24:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v88EOjEd019919; Fri, 8 Sep 2017 10:24:45 -0400 From: Tom Lane To: email@piotr-stefaniak.me cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14806: WAL replay on standby: could not link file "pg_xlog/...4C" to "pg_xlog/...D1": File exists In-reply-to: <20170908115806.25640.43192@wrigleys.postgresql.org> References: <20170908115806.25640.43192@wrigleys.postgresql.org> Comments: In-reply-to email@piotr-stefaniak.me message dated "Fri, 08 Sep 2017 11:58:06 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19917.1504880685.1@sss.pgh.pa.us> Date: Fri, 08 Sep 2017 10:24:45 -0400 Message-ID: <19918.1504880685@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org email@piotr-stefaniak.me writes: > We have an archive-only replicating standby. During intensive WAL replay, it > sometimes happens that the standby will say "58P02: could not link file > "pg_xlog/[...]" to "pg_xlog/[...]": File exists" as in the example below. It > looks like some kind of race condition. This is normal I believe; in any case it looks pretty harmless, since RemoveXlogFile will just remove the file if it fails to recycle it as a future xlog segment. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs