Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWFrH-0001Aj-4s for pgsql-performance@arkaria.postgresql.org; Fri, 01 Oct 2021 10:33:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mWFrD-0007Bo-V1 for pgsql-performance@arkaria.postgresql.org; Fri, 01 Oct 2021 10:33:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWFrD-0007Bg-HK for pgsql-performance@lists.postgresql.org; Fri, 01 Oct 2021 10:33:35 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWFr7-0006c9-Um for pgsql-performance@lists.postgresql.org; Fri, 01 Oct 2021 10:33:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uF3Qz4fgK/DVtgIPLQa8AgfEoRaXrnkF23193UZeUqs=; b=f7+hzwr6z2/gYwaH4GTSiDJicL VkVMsPCu91fMG/gHQcha5IqjpAxKof5rTu8Pk7CrFmCLbTznHqutmSRiM24xEk15HkwXctq2q4xWX UfLBirOGqb1z6OpfVA7om4FzWroviNfrBHhKxVtfpZsKf74k4CsOp78y3n6de60oqtKA=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mWFr3-0006SD-Vv; Fri, 01 Oct 2021 12:33:26 +0200 Date: Fri, 1 Oct 2021 12:33:25 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: aditya desai Cc: Laurenz Albe , Pgsql Performance Subject: Re: Query going to all paritions Message-ID: <20211001103325.GA22890@depesz.com> Reply-To: depesz@depesz.com References: <9b0fc158ae0701e0e3cbd03d7f022735dc4e3f24.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Oct 01, 2021 at 02:24:11PM +0530, aditya desai wrote: > Hi Laurenz, > Please find attached explain query plan and query. Can you show us \d of the table, and exact query you ran? Also, please, don't send images. This is text, so you can copy-paste it directly into mail. Or, put it on some paste site - for explains, I suggest https://explain.depesz.com/ It's impossible to select text from image. It's much harder to read (it doesn't help that it's not even screenshot, but, what looks like, a photo of screen ?!