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.96) (envelope-from ) id 1vnJyK-0055ov-0h for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2026 17:13:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnJyJ-006Xxm-0p for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2026 17:13:51 +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.96) (envelope-from ) id 1vnJyI-006Xxd-33 for pgsql-hackers@lists.postgresql.org; Tue, 03 Feb 2026 17:13:50 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vnJyG-00000000OKA-42wP for pgsql-hackers@lists.postgresql.org; Tue, 03 Feb 2026 17:13:49 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 69D3A140004A; Tue, 3 Feb 2026 12:13:48 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Tue, 03 Feb 2026 12:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1770138828; x=1770225228; bh=ChHbHzsoIy l344NBBptG0QbW6Kb30xnbHhD4QfWaVzQ=; b=dB3mq74XayiAwYm/1GlgsFs7cK tKIoq/tND1Oq8vYF8xKAuUv2h6e1ZUD45rshSLpW4Iu5cj2AhKKn3TikmYM6H8Bb p5k12IRrIpT8R91njAeCBbCBPXuesB/HlQKKoUPOV99vqZpFEaiucz8okkdn+Uj7 YIZxav97ct+BbDLwYYkA5PdgSZbsAl1dbK1DYQVTuuDSknRQ/omIPCV/S7dXB1Pv 2KeOnBTgAwy8ywQF/+sIMuoHD/7vMv1Uhdp92Huf2YlW45AjGQS3GKFnFdgjwU3C f+O5lI6158UzdDy/LMuWg0n16j7WAbfGsD93BfWvHt9TTca2TkiZnmVUqOvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1770138828; x=1770225228; bh=ChHbHzsoIyl344NBBptG0QbW6Kb30xnbHhD 4QfWaVzQ=; b=r8jmV3bq+l2D0bV9agGPYvD1D4W78VwHij76Ntee4bflKA4itXk ZOQmJ3rzjAFON0GkoxjtAhVMAOVx5msMLLH1cJLCBGWd5MtPHxlL2UPRdVllxaZe 1IA+pC9TFJIEKtUHz+1MVQL9R8U2IXp1q7PmwkiZpj1iPpNMQko/vTixQCwgPCnj yED32E5idEhl+TSxGu4sBR/LaoCZcM+zF59P7qXx1IK68EFHhEOC8vXM34UiZHk3 UCGLmHZR3hoIgoq9bhjiHzRQsCNQpB9MipHcye9Z0WJ0Fu7OQGdWmMznF8ZUTJy6 MlbZvdE6NiG4fVCE/MgvM8NaARFLUBP7o4Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddukedtiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepfeffgfelvdffgedtveelgfdtgefghfdvkefggeetieevjeekteduleevjefh ueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeduvddpmhhouggv pehsmhhtphhouhhtpdhrtghpthhtoheprggurhhivghnrdhnrgihrhgrthesrghnrgihrh grthdrihhnfhhopdhrtghpthhtoheprghnthhhohhnihhnrdgsohhnnhgvfhhohiesuggr thgrughoghhhqhdrtghomhdprhgtphhtthhopehmhihonhesuggvsghirghnrdhorhhgpd hrtghpthhtohepvghulhgvrhesvghulhgvrhhtohdrtghomhdprhgtphhtthhopehhthgr mhhfihgushesghhmrghilhdrtghomhdprhgtphhtthhopehmsggrnhgtkhesghhmgidrnh gvthdprhgtphhtthhopehpohhsthhgrhgvshesjhgvlhhtvghfrdhnlhdprhgtphhtthho pegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdprhgtphhtthhopehpghhsqhhlqd hhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Feb 2026 12:13:46 -0500 (EST) Date: Tue, 3 Feb 2026 12:13:46 -0500 From: Andres Freund To: Greg Sabino Mullane Cc: Adrien Nayrat , Christoph Berg , Euler Taveira , Pierre Ducroquet , Jelte Fennema , =?utf-8?Q?=C3=81lvaro?= Herrera , PostgreSQL Hackers , Andreas Karlsson , Anthonin Bonnefoy , pgsql-hackers , Michael Banck Subject: Re: Change default of jit to off Message-ID: References: <49490d8d-e8b9-497b-9a58-712daadb9ca9@anayrat.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, +1 for disabling it by default. Particularly with partitioning having become much more common since jit compilation was added, combined with LLVM getting a lot slower over time, that's unfortunately the right call until some substantial improvements are made. On 2026-02-03 12:03:51 -0500, Greg Sabino Mullane wrote: > Given that so many places are already disabling it, +1 to disabling by > default - unless someone can come up with a costing tweak so it doesn't > fire when it shouldn't - but right now that seems something only humans can > truly determine. I think it needs more than a costing tweak. The most important thing would be to get caching (there's progress, albeit very slow one, towards that), so the downside of JIT compilation doesn't hit you over and over. Relatedly, we often end up with the almost-same expression being jit compiled many times in partitioned workloads, which is one of the main sources of high jit compilation times. We also need to just increase the benefit of JIT compilation further, the code we generate leaves a *lot* on the table, particularly for more complicated expressions, where the gain also can be the biggest. Greetings, Andres Freund