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 1sqdVY-00BPHb-1Z for pgsql-general@arkaria.postgresql.org; Tue, 17 Sep 2024 19:05:05 +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 1sqdVX-00EwWA-K6 for pgsql-general@arkaria.postgresql.org; Tue, 17 Sep 2024 19:05:03 +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 1sqdVX-00EwW1-8L for pgsql-general@lists.postgresql.org; Tue, 17 Sep 2024 19:05:03 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:510a::3]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sqdVQ-001gQU-5v for pgsql-general@lists.postgresql.org; Tue, 17 Sep 2024 19:05:02 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:21b:21ff:fef0:248b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R10" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS id 9718EC0030C; Tue, 17 Sep 2024 21:04:52 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 48CE7EAC0F; Tue, 17 Sep 2024 21:04:52 +0200 (CEST) Date: Tue, 17 Sep 2024 21:04:52 +0200 From: Christoph Moench-Tegeder To: Thomas Ziegler Cc: "pgsql-general@lists.postgresql.org" Subject: Re: Failing to allocate memory when I think it shouldn't 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.13 (2024-03-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, ## Thomas Ziegler (thomas.ziegler@holmsecurity.com): > Except for pgAudit, I don't have any extensions, so it is probably the > JIT. I had no idea there was a JIT, even it should have been obvious. > Thanks for pointing this out! There is - it even has it's own chapter in the documentation: https://www.postgresql.org/docs/current/jit.html Most importantly, you can disable JIT per session ("SET jit=off") or globally in the configuration file (jit=off, reload is sufficient) or with any of the other usual configuration mechanisms. If that fixes your problem, congratulations (and the problem is somewhere down between bytecode generation and what and how llvm (in its particular version) generates from that). > Is the memory the JIT takes limited by 'work_mem' or will it just take > as much memory as it needs? The latter. Regards, Christoph -- Spare Space