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 1vJZFe-00BLuf-1f for pgsql-general@arkaria.postgresql.org; Thu, 13 Nov 2025 15:28:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJZFc-002Say-0v for pgsql-general@arkaria.postgresql.org; Thu, 13 Nov 2025 15:28:44 +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 1vJZFb-002Sap-37 for pgsql-general@lists.postgresql.org; Thu, 13 Nov 2025 15:28:43 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJZFZ-007Z1F-0H for pgsql-general@lists.postgresql.org; Thu, 13 Nov 2025 15:28:43 +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 5ADFSagS2716433; Thu, 13 Nov 2025 10:28:36 -0500 From: Tom Lane To: Greg Sabino Mullane cc: Zahir Lalani , "pgsql-general@lists.postgresql.org" Subject: Re: Forcing Index usage In-reply-to: References: Comments: In-reply-to Greg Sabino Mullane message dated "Thu, 13 Nov 2025 09:06:59 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2716431.1763047716.1@sss.pgh.pa.us> Date: Thu, 13 Nov 2025 10:28:36 -0500 Message-ID: <2716432.1763047716@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Greg Sabino Mullane writes: > Please provide a self-contained use case, or (at the bare minimum) trim out > the irrelevant parts of your query and show us the schema for the tables in > question. Finally, please show the explain plans for the "good" and "bad" > runs you are experiencing. Thanks. There's a lot of good info about how to ask useful performance questions at https://wiki.postgresql.org/wiki/Slow_Query_Questions regards, tom lane