Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOGYG-0006a5-P4 for pgsql-performance@arkaria.postgresql.org; Fri, 23 Jun 2017 04:50:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOGYG-0002fF-7M for pgsql-performance@arkaria.postgresql.org; Fri, 23 Jun 2017 04:50:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOGYF-0002f5-Mf for pgsql-performance@postgresql.org; Fri, 23 Jun 2017 04:50:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOGYD-0006mt-4t for pgsql-performance@postgresql.org; Fri, 23 Jun 2017 04:50:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5N4oVMY019642; Fri, 23 Jun 2017 00:50:31 -0400 From: Tom Lane To: Sumeet Shukla cc: Dave Stibrany , pgsql-performance@postgresql.org Subject: Re: Dataset is fetched from cache but still takes same time to fetch records as first run In-reply-to: References: Comments: In-reply-to Sumeet Shukla message dated "Thu, 22 Jun 2017 23:35:29 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19640.1498193431.1@sss.pgh.pa.us> Date: Fri, 23 Jun 2017 00:50:31 -0400 Message-ID: <19641.1498193431@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Sumeet Shukla writes: > Yes, but when I actually execute the query in pgAdmin3, it takes exactly > the same time of 19.5 secs. pgAdmin is well known to be horribly inefficient at displaying large query results (and 121788 rows qualifies as "large" for this purpose, I believe). The circa-tenth-of-a-second savings on the server side is getting swamped by client-side processing. It's possible that pgAdmin4 has improved matters in this area. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance