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 1mKj12-00055r-D0 for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 15:16:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKj11-0000a9-BC for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 15:16:03 +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 1mKj11-0000a1-2Y for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 15:16:03 +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 1mKj0w-0000j6-39 for pgsql-general@postgresql.org; Mon, 30 Aug 2021 15:16:02 +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=cLSt76ZZGhOvFkY5isNpWudrrhWcy9xAjwneI+NR3ek=; b=MDZ/Vw4/MrlGTdML/uvHldp2Lh z60dfmQXixK2bbcVMk4OlOMzCbbEruBsDHNCsMpGdMchXkVjsxkoiEIWGy4ObGe3ljCxoW3i8eUiX ZgOHh0ycay6vdBPX0WvtvB+oLd1Wmze9Kq8vgNHTnL+mx7xYAAAF2/nsF8wpdXsbs+4I=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mKj0t-0002lm-5B; Mon, 30 Aug 2021 17:15:55 +0200 Date: Mon, 30 Aug 2021 17:15:55 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Joe Conway Cc: Vijaykumar Jain , pgsql-general mailing list Subject: Re: Pg stuck at 100% cpu, for multiple days Message-ID: <20210830151554.GA9945@depesz.com> Reply-To: depesz@depesz.com References: <20210830134510.GA14443@depesz.com> <20210830143621.GA23857@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Aug 30, 2021 at 11:04:33AM -0400, Joe Conway wrote: > src/backend/utils/hash/dynahash.c:1448 is in the middle of a while loop, > which is apparently not exiting. > There is no check for interrupts in there and it is a fairly tight loop > which would explain both symptoms. > As to how it got that way, I have to assume data corruption or a bug of some > sort. I would repost the details to hackers for better visibility. Thanks. Done. Best regards, depesz