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 1qGgV9-0001e5-QU for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jul 2023 13:55:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGgV7-0007Jk-Mh for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jul 2023 13:55:29 +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 1qGgV7-0007Jb-DF for pgsql-bugs@lists.postgresql.org; Tue, 04 Jul 2023 13:55:29 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qGgV4-001zu4-A1 for pgsql-bugs@postgresql.org; Tue, 04 Jul 2023 13:55:28 +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=AuQB+fM+UsZJtuRlZSrf3TslWzPjZ4L32WgYtnAL4qM=; b=sB4+HD0H/7+Aw7Y/kr/z/iSgDe PSq7Dyltu/+fCPg2ofFw5xmQr4k/XqCaM3RR2p29Vcz/ga8bBntrjHhXy7rcHWbAd7JymZ0VBFSpa zNjESXIFC/mQOzYLaAXK4hPKYDnFAmMsxp31L0CGFnIN7gez+BAd/39zJOSzP2vffug8=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1qGgV1-007U10-BD; Tue, 04 Jul 2023 15:55:23 +0200 Date: Tue, 4 Jul 2023 15:55:23 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Tomas Vondra Cc: pgsql-bugs mailing list Subject: Re: Backend handling replication slot stuck using 100% cpu, unkillable Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 04, 2023 at 03:04:58PM +0200, Tomas Vondra wrote: > The backtrace has this: > and 187650155969544 should be LSN AAAA/B4E37C08, which maps to > select pg_walfile_name('AAAA/B4E37C08'); > pg_walfile_name > -------------------------- > 000000010000AAAA000000B4 We're not that far. Current WAL is 0000000100001D77000000AF There was command in there, though that referred to wal 0000000100001D6C00000092 I checked pg_waldump of this wal, and found lots of DELETE and NEW_CID commands on 2 relations: pg_depend and pg_publication_rel This kinda makes sense given that around that time there was drop of replication slot, and earlier drop of all tables from it. Best regards, depesz