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 1viEgU-001IE6-1w for pgsql-general@arkaria.postgresql.org; Tue, 20 Jan 2026 16:34:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1viEgT-001oqd-1K for pgsql-general@arkaria.postgresql.org; Tue, 20 Jan 2026 16:34:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viEgS-001oqQ-1T for pgsql-general@lists.postgresql.org; Tue, 20 Jan 2026 16:34:25 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viEgP-001YP5-0n for pgsql-general@lists.postgresql.org; Tue, 20 Jan 2026 16:34:24 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id ECBA4140012E; Tue, 20 Jan 2026 11:34:18 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 20 Jan 2026 11:34:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding: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=fm1; t=1768926858; x=1769013258; bh=mehKoK3gcZt5GEE9qq4rMTxqf757frrk+a85y8SeyfU=; b= bTr9UXhnJi9+tg7QuNDjyJdHObrXG1gdDEHMprN1WGvJxR1dLJCahp1ECK+FFzMY p7xTY5RsfQ9UIU5UZx0AjBNLZl9qtZ8hCylrNDjFAmYJ5QoOLE2dA4cGYfBDOA6I dfGGQCIfR3FLn0K6ATdD6zYHy7FjkdHJ0BzjSqhKwqNzP7Cz+E+5hLm1GzyUn7b/ OmAIxoQPKoby9a8Qg91klYLoE4ZWLU2sfT4FKlfqSVN7tfTEtrzmHQVPT8rOHB9D WAYBQhw3sKQHwF/O9HRFgieNSIs19C4M/rhUANZbC6djGpBiz6kRt/NBplKLSqDr FELWTucnthjPSkxIzEmd8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm2; t=1768926858; x=1769013258; bh=m ehKoK3gcZt5GEE9qq4rMTxqf757frrk+a85y8SeyfU=; b=SWBqr3z/+x7chAgFQ qsvhI9rbolZHFTjqV6V05taYOYRU0HKMeW6ybGkK5h/JMLxNN75YAxJvg+Z3X8Aw P0ItfeHsdfaWnHceEkFqvAzQBWkk4AjnSWiw7pkbFtpmKTO7oB89TBUddBQwhVIG 9p7x/VFMRfncK1SYC2JzdQdJGiXpqkjvzsxvVI6XnKeIttLC/e+w94viNR5E2AlG jmnDeQIgM1lsBZFTdr207tZdLSsygnY9SSSXb3PsJW/Gs0KKeQoHtddPnqY4aGoJ pXJPKmUjnDScxp55ehzL8OjE0qoIh1gPq8Sd+Oc6rDCgvlEU4P3Ru5i+CSm8NTa7 NXmKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddugedtleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeekfefhfffglefgjeehheelhedvgefffeelffdvvedtieff uefhiedvvedtlefhjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmh htphhouhhtpdhrtghpthhtohepnhhitgholhgrshesshgvihhnlhgvthdrtghomhdprhgt phhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlh drohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Jan 2026 11:34:18 -0500 (EST) Message-ID: Date: Tue, 20 Jan 2026 08:34:17 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_trgm upgrade to 1.6 led to load average increase To: Nicolas Seinlet , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/20/26 00:50, Nicolas Seinlet wrote: > Hello, > > we've upgraded the pg_trgm extension from 1.0 to 1.6 on our production > database, while sticking our postgresql cluster version to 16. This led > to an increase in the load average of the server (twice the load average > on our use case). After investigation, we found our issue was linked to : > https://github.com/postgres/postgres/ > commit/935f6666502250abde8615bc7805a6e5aa05a066 postgres/postgres/commit/935f6666502250abde8615bc7805a6e5aa05a066> > > We issue queries like : > SELECT model, res_id FROM ir_model_data WHERE module='base' AND > name='public_user'; You need to provide the table definition, including indexes. > Thanks in advance, > > Nicolas > > -- Adrian Klaver adrian.klaver@aklaver.com