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 1qGeEr-0002Pw-Sb for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jul 2023 11:30:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGeEq-0000gR-Lf for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jul 2023 11:30:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGeEq-0000gH-Cl for pgsql-bugs@lists.postgresql.org; Tue, 04 Jul 2023 11:30:32 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGeEi-0028db-Ke for pgsql-bugs@postgresql.org; Tue, 04 Jul 2023 11:30:31 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-51dec0b6fecso5189142a12.1 for ; Tue, 04 Jul 2023 04:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1688470223; x=1691062223; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8D2ZpXObENzIWUrR9BpsPhRE+VIPRC+n06UJZRRgoGc=; b=WBsw1utr3x8TD56uNG5jETeq4TMsLU2qQ4tpaEKMdkGqXw7szC71QbkD4F/AtK5J8a IMhJE+UQK6pmgK94K1c16MLu+/B/lj8kvkpSI8hSzFlv2EUQ12geZZY9VnMeTWwoyf3q dw50I4NB/EpYS5EzIcsMtm3zJgwFe5DEzm39sPJUApmiyH5WUzYR9uYA3yoYZbm3ULux kZ7AjkddYQr4fhIXcX9esiOBr+5qpBZOij5RIa58IwwITgbt+e/oiFuDh9z5oIkLiwX2 MTCYnum3S53W5SJ3fFNsowBAdyu689Db4s3qPQZpcgBso2ljaPqVKpuWxkKSc7g7ZJp2 J6cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688470223; x=1691062223; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8D2ZpXObENzIWUrR9BpsPhRE+VIPRC+n06UJZRRgoGc=; b=LhV4+hbFOyJkb63E4t7L96MCs/+aQVf51qyqZLSnlKpMSb616EcjLqlxeXNc3a/Y2T cFZ3/dQT3ocBWg2LseO5wCYD9owlmluTQNm7I1FOxzW4QBmOSyoFEoeLZtk3cpLvJc2e y/NfOT3UNb7Vc6yhbC7L5dZZQoIMM04cqx7lEQ5zH/uv5Pfor6xcQ9KubEkK9485iDHb p21TNtpOCgIx/E9pdjfyhoNl1brjqc61g6ywXQl560fxZ9Brr8YOupsG1IOS6E9Brpi8 nFcEs10p+Ev0xqZorhgYKxgR+tuWbWFJCZmfWKrJPM2ON0D8njsEIyVghGG2bAVbAuHm EHsg== X-Gm-Message-State: ABy/qLazT5TUIIiehTme4E2Uabm3G1nlBkVZm2Ve9JxWliO0aGwNamwr a0xXVRTu1gqsB/VF4eBrDyKD5g== X-Google-Smtp-Source: APBJJlHbJHx+hUYIzsWlMRg2K+nym2nskTe60JE535SdpErqee0ipgbt2pb662+caaw6CSqEvcX+RQ== X-Received: by 2002:a17:906:5653:b0:992:5cda:69f1 with SMTP id v19-20020a170906565300b009925cda69f1mr10076949ejr.61.1688470223259; Tue, 04 Jul 2023 04:30:23 -0700 (PDT) Received: from [10.137.0.17] (static-84-42-175-93.bb.vodafone.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b00989828a42e8sm13126829ejb.154.2023.07.04.04.30.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 04:30:22 -0700 (PDT) Message-ID: Date: Tue, 4 Jul 2023 13:30:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Backend handling replication slot stuck using 100% cpu, unkillable Content-Language: en-US To: depesz@depesz.com, pgsql-bugs mailing list References: From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/3/23 14:58, hubert depesz lubaczewski wrote: > ... > > and then it went back to hash_seq_search :( > So is it an infinite loop in ReorderBufferExecuteInvalidations, or is it just the case that there are many invalidations? I can't really deduce that from the backtraces. How many invalidations does the transaction have? Should be enough to print txn->ninvalidations Also, is there anything interesting about the transaction? You know the XID (2741814901) so maybe use pg_waldump to see what it did. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company