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 1pj7MW-0006CD-Cr for pgsql-general@arkaria.postgresql.org; Sun, 02 Apr 2023 23:43:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pj7MT-0006Ft-GC for pgsql-general@arkaria.postgresql.org; Sun, 02 Apr 2023 23:43:49 +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 1pj7MT-0006Fk-5c for pgsql-general@lists.postgresql.org; Sun, 02 Apr 2023 23:43:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pj7MP-000X25-QE for pgsql-general@lists.postgresql.org; Sun, 02 Apr 2023 23:43:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 332Nhg531077330; Sun, 2 Apr 2023 19:43:43 -0400 From: Tom Lane To: Jason McLaurin cc: pgsql-general@lists.postgresql.org Subject: Re: Very slow queries followed by checkpointer process killed with signal 9 In-reply-to: References: Comments: In-reply-to Jason McLaurin message dated "Sun, 02 Apr 2023 17:25:19 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1077328.1680479022.1@sss.pgh.pa.us> Date: Sun, 02 Apr 2023 19:43:42 -0400 Message-ID: <1077329.1680479022@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jason McLaurin writes: > I'm troubleshooting an issue where about once a week, a database appears to > lock up and then the PostgreSQL process crashes and recovers. When this > happens, a few queries will be logged, but there is no pattern to which > queries are executing when the crash happens, and the queries logged don't > appear to be queries that would consume a lot of resources. Hmm, is it always the checkpointer that gets the OOM kill? That seems quite odd. What PG version is this exactly? Do you have any extensions installed? I recall having seen somebody before reporting odd slowness of trivial commands like BEGIN. I failed to find the thread(s) in the archives though, so I'm not sure if we identified the cause. regards, tom lane