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 1oGXAC-0004gi-L2 for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Jul 2022 02:52:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oGXAA-00039V-Di for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Jul 2022 02:52:42 +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 1oGXAA-00039M-32 for pgsql-bugs@lists.postgresql.org; Wed, 27 Jul 2022 02:52:42 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oGXA4-00047w-It for pgsql-bugs@lists.postgresql.org; Wed, 27 Jul 2022 02:52:41 +0000 Received: by mail-pf1-x42b.google.com with SMTP id b9so14922941pfp.10 for ; Tue, 26 Jul 2022 19:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=CZNBZTuef0HVNPA25d3hQeg+zmvXZFOrbgE1FLHRdhU=; b=NmgCOBuN4GOMt89K2R9mMk8EXurdxDDv4P/aCb28T+/kw20eGQVXb1TLARA9lCVV3z 2QzIw1G5bEf1YOxVPFgP/2cAoy8IWOG+jbGkGGvw6DYG1rA+iz6x3YB/cD64pk2sa4x8 v0p6wrnIrvQAxnw1KjjeFvYD/kZ09zUMUHJbJnrHGAbkUhlZC7uhGQ+bifuvsFFuYlkb sauNv5Ru03d8bdl3ZkQ8HR4qfY9mdQhYw7aqz6rWkFeBPbfBUv5DxbADBkMjbBohOcdb FHgOe9EI3JorCoCrl96Ex8z5T3PFCl0psnE/DEoJnzx3H8MS83prKIdhC7qtP0fMsr1r 6PZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=CZNBZTuef0HVNPA25d3hQeg+zmvXZFOrbgE1FLHRdhU=; b=nkl9UjylsSHHGZvbrE7AnJFaIVCQ2fLZL536vkd8QN+38UXv9oZYV+vR4CCU7Xp1ci qVpgTfx2GVcZvzXcGzfS+1Y1+hBwBOdpQ26Mflo+X0TSZC4kzd6dX18mKxYIILfoHjSR u1Btq3DoRgqFsDQTF0a/C5HfAoeVIpBIz/FW0jamXOBzrGLydjYKCIwrTWcIdWYgeXWo tVQKb/uKJV2q/rJpFS8fu89lo2FqT2BPzMkOioriWQTPZq+dHLrni4isrjroGEX3J4uA 58F9fXpJF9LUeQlwGIla2pYRjnbAqt9EA8dRWCUDmqcz645OuPMjF6dwjyrxf7ArrItV ZOEQ== X-Gm-Message-State: AJIora8rB2ZHeG9fiZFWkbZzsuLpMXEk5VozYe4etVZumguzWqq0VnSY tpLj6PUA1wSWZ5aQa6zd6v0= X-Google-Smtp-Source: AGRyM1unQQ67QkhRRUwxzB7Solej8UTRWmLjIEXf2g/ijtFfNOrftakufatEjnGl0PeGV2VUtKtBnA== X-Received: by 2002:a63:1360:0:b0:410:702f:d1d4 with SMTP id 32-20020a631360000000b00410702fd1d4mr16839141pgt.625.1658890355460; Tue, 26 Jul 2022 19:52:35 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id c5-20020a637245000000b004161b3c3388sm11116542pgn.26.2022.07.26.19.52.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Jul 2022 19:52:34 -0700 (PDT) Date: Wed, 27 Jul 2022 11:52:31 +0900 (JST) Message-Id: <20220727.115231.2253693006154033555.horikyota.ntt@gmail.com> To: zsolt.ero@gmail.com Cc: david@pgmasters.net, pgsql-bugs@lists.postgresql.org, michael@paquier.xyz Subject: Re: could not link file in wal restore lines From: Kyotaro Horiguchi In-Reply-To: <20220727.111520.1840834685354253270.horikyota.ntt@gmail.com> References: <8bc21242-6a7c-47b3-5af1-e6c9956d5ffa@pgmasters.net> <20220727.111520.1840834685354253270.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Jul_27_11_52_31_2022_466)--" Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----Next_Part(Wed_Jul_27_11_52_31_2022_466)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit > I'm gonig to modify the patch for PG12 then come up again. So, this is the version of cc2c7d65fc that is minimally modified (but not checked seriously) for PG12. (cc2c7d65fc was almost cleanly applied.) I applied this and observed that WAL recycleing is prevented until archive recovery ends and I finally didn't see the "could not link" error happen. Zsolt, could you confirm this patch works for you? regards -- Kyotaro Horiguchi NTT Open Source Software Center ----Next_Part(Wed_Jul_27_11_52_31_2022_466)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cc2c7d65fc_for_PG12.patch" 58 7 src/backend/access/transam/xlog.c ----Next_Part(Wed_Jul_27_11_52_31_2022_466)----