Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnKY9-00AdcY-Lv for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 15:09:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qnGu7-00Efj2-O2 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2023 11:15:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnGkj-00Asos-Ep for pgsql-hackers@lists.postgresql.org; Mon, 02 Oct 2023 11:06:17 +0000 Received: from smtp.burggraben.net ([88.198.69.140]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnFp2-007lHK-Nv for pgsql-hackers@lists.postgresql.org; Mon, 02 Oct 2023 10:06:42 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R3" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id 0BC35C0030C; Mon, 2 Oct 2023 12:06:38 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id A42963AB06; Mon, 2 Oct 2023 12:06:37 +0200 (CEST) Date: Mon, 2 Oct 2023 12:06:37 +0200 From: Christoph Moench-Tegeder To: Fabrice Chapuis Cc: PostgreSQL Hackers Subject: Re: wal recycling problem Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, ## Fabrice Chapuis (fabrice636861@gmail.com): > on the other hand there are 2 slots for logical replication which display > status extended. I don't understand why given that the confirmed_flush_lsn > field that is up to date. The restart_lsn remains frozen, for what reason? There you have it - "extended" means "holding wal". And as long as the restart_lsn does not advance, checkpointer cannot free any wal beyond that lsn. My first idea would be some long-running (or huge) transaction which is in process (active or still being streamed). I'd recommend looking into what the clients on these slots are doing. Regards, Christoph -- Spare Space