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 1vhNOU-00Dqex-2O for pgsql-performance@arkaria.postgresql.org; Sun, 18 Jan 2026 07:40:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vhNOT-00A9KQ-10 for pgsql-performance@arkaria.postgresql.org; Sun, 18 Jan 2026 07:40:17 +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 1vhDIE-009ZTy-0D for pgsql-performance@lists.postgresql.org; Sat, 17 Jan 2026 20:53:10 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vhDIB-00137N-1l for pgsql-performance@lists.postgresql.org; Sat, 17 Jan 2026 20:53:10 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id A7D207A004D; Sat, 17 Jan 2026 15:53:04 -0500 (EST) Received: from phl-imap-16 ([10.202.2.88]) by phl-compute-05.internal (MEProxy); Sat, 17 Jan 2026 15:53:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=star-ark.net; h= cc: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=fm2; t=1768683184; x=1768769584; bh=sWaNcX/rO3oLWLmC4/CsUpfypakD164FZIl5aA5zeCg=; b= byS9VsMoyYaECt8Wugm61Ta5G+/qAW3pB7WF6356Ga6o0FR+Pm7ewZ1Ub7p880z0 PhHDhzMThbEN0Im1eZ91rulWGJUH1/R1ikJkCvlHWn19APi8lEcNkGUIfVD6ocQT /Rf0j889yTBJQ68SLJgHb3A4Qaj6TYKctAe77ixa5aj/WuT+Oc4HGl1ZYjxGua0c Get1Cs7ABHSm0daQgwVLI5790ryCqgnUVMadMXsLDmbKEknZjDjRyVJG1RqcubE8 xrT3NmsaUYdHPgayY4SLlV+tr7ESmqtdCKDrW/0JjKmV/Wb8yBkPIvPkOiHQ4XZA X2ZcV/a/PLGQ3XP0dFmV9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1768683184; x= 1768769584; bh=sWaNcX/rO3oLWLmC4/CsUpfypakD164FZIl5aA5zeCg=; b=q rSJcD1OURJzGdzn8sCo++PWoo1/bee/3qcpvvLyEtEF8FEuVqJOmV4PMsCKBXPl+ tt5oGY7/X0Sif5Tglw9F8Jm2xXHscyBZAcreO0pFCsmwXA2872RrqTJr9rmhAYA+ aY0y33iTi6bjTrR3moH8ezhE5W/1RFRoII7Tu1OVYaVsqV94j0ZiEBC/Pmughn1w hrxpd4Ii9gZgOZKVfQo62lJST4zySV0I9iJ6hbOV/Sux5cRvtYjbjcPkDOUm5MgM hEb6uB+zmFkwc98V7hevNg0MLmhgZyH4PtH+MAIXmwkq5O8yaJWJ6F8ok1m83gXm N6UuM4gksCclIACmAJ/Ew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddufedvkedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefoggffhffvvefkjghfufgtgfesthejre dtredttdenucfhrhhomhepfdfnihhllhhirghnuceuvghrrhihfdcuoehlihhllhhirghn sehsthgrrhdqrghrkhdrnhgvtheqnecuggftrfgrthhtvghrnhepheegkeffteehheefke dtleelvdefvdeuudfhveefveeufffffedvjedtveeklefgnecuffhomhgrihhnpehonhdr nhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hlihhllhhirghnsehsthgrrhdqrghrkhdrnhgvthdpnhgspghrtghpthhtohepfedpmhho uggvpehsmhhtphhouhhtpdhrtghpthhtoheplhgvphhihhhovhesghhmrghilhdrtghomh dprhgtphhtthhopehpghhsqhhlqdhpvghrfhhorhhmrghntggvsehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrghdprhgtphhtthhopehinhhfrhgrsehplhhurhgrlhhkihhtrd hmvg X-ME-Proxy: Feedback-ID: i8db94900:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id D39FD2CC0083; Sat, 17 Jan 2026 15:53:03 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: AuzG0eDhvpdc Date: Sat, 17 Jan 2026 21:52:54 +0100 From: "Lillian Berry" To: "Andrei Lepikhov" , pgsql-performance@lists.postgresql.org Cc: infra@pluralkit.me Message-Id: In-Reply-To: <1d79d974-acfe-483c-81da-61989ed2f91b@gmail.com> References: <1d79d974-acfe-483c-81da-61989ed2f91b@gmail.com> Subject: Re: Slow queries on simple index Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Hmm, where is the evidence that your query uses theindex? Maybe the > generic plan accidentally forces SeqScan? You may be correct - I just noticed that I am able to reproduce slow queries through my app. However, running the exact same queries in psql does use the index. What might be different about my app's connections than psql? It uses Npgsql 9.0.2 on .NET 8, with these settings: // src is "Host=[fdaa:9:e856:a7b:910f:0:a:102];Port=5432;Username=pluralkit;Database=pluralkit;Maximum Pool Size=150;Minimum Pool Size = 50;Max Auto Prepare=50" var builder = new NpgsqlConnectionStringBuilder(src) { Pooling = true, Enlist = false, NoResetOnClose = true, Timeout = 2 }; My understanding is slow query logs calculate the query time on the backend, and any client or network latency is not counted. Is this correct? Kindly, Lillian