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 1ovzWo-0000gK-Nv for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Nov 2022 11:27:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovzWn-0005MS-K1 for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Nov 2022 11:27:25 +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 1ovzWn-0005KV-8n for pgsql-bugs@lists.postgresql.org; Fri, 18 Nov 2022 11:27:25 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovzWk-0001A7-87 for pgsql-bugs@postgresql.org; Fri, 18 Nov 2022 11:27:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UAzvomycQ25P9rZ/9eU6e/YuHBrYa7OTdxhLREVeJLU=; b=SwGEu8ML9PnjtNysEoYgUvRCio kozLkQrk4aEoSo7imw21RgPVSDQvGU+uHJushXUmn2TJQCsCXA1nlqZ/0hKdX1FTJFg7MjgwoFquE HHgI3rsuoF716M9s8yvVyLOCsh/LABLzNUe30/VftjwCLLRU1Rd5zgjULdEXC7RL1738=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1ovzWf-001oB8-KK; Fri, 18 Nov 2022 12:27:17 +0100 Date: Fri, 18 Nov 2022 12:27:17 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Andres Freund Cc: Masahiko Sawada , Amit Kapila , pgsql-bugs mailing list Subject: Re: WAL segments removed from primary despite the fact that logical replication slot needs it. Message-ID: Reply-To: depesz@depesz.com References: <20221117080258.6q3gob3pc3zqz2hm@awork3.anarazel.de> <20221117185529.2q7quyznpdrcjqnx@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221117185529.2q7quyznpdrcjqnx@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 17, 2022 at 10:55:29AM -0800, Andres Freund wrote: > Hi, > > On 2022-11-17 23:22:12 +0900, Masahiko Sawada wrote: > > On Thu, Nov 17, 2022 at 5:03 PM Andres Freund wrote: > > > > > 4. wal sender restarts for some reason (or server crashed). > > > > > > I don't think walsender alone restarting should change anything, but > > > crash-restart obviously would. > > > > Right. I've confirmed this scenario is possible to happen with crash-restart. > > Depesz, were there any crashes / immediate restarts on the PG 12 side? If so, > then we know what the problem likely is and can fix it. If not... > > > Just to confirm, the problem has "newly" occurred after you've upgraded to > 12.12? I couldn't quite tell from the thread. No crashes that I can find any track of. And no, it's not related to 12.12 We were using 12.9, and in process of trying to figure stuff out we upgraded to 12.12, which didn't help. Best regards, depesz