Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5xyR-0002w6-FL for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 18:58:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5xyP-0001wL-Uc for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 18:58:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5xyP-0001wC-Ix for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 18:58:45 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5xyM-0005fY-Rt for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 18:58:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 92D2D31C; Fri, 28 Sep 2018 14:58:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 28 Sep 2018 14:58:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=/titEF5GGMfYT/7HKt0XX9z0zNp0J B4TSNhHQYw2U3I=; b=8Av/AZdJaIfmSyKU1Zhd77ybspEgL50YjwYe6AxSpokcn x02ZMxan7imM237TQHOOAWj02vNXJIjmI724Cn0pXisXMDnFUs0zRtIIXXCx+CcN TdTs5Au/445o7bI4vSMPCf3Hh9QEGgs4/QJrfg83RQChbLemJxaxiu30VRuXZgKL 9yTmdp7wgw6JVnBj5LChR9oiTMgwhC4ffmpOcET0kQdjOxTuJL2b0GlqDFGa4xQ/ jqwuLOjBRA+wVzYdmItRV7H/ZHpcCPaDUjNPMJrSu5EOH5zqaQ4B1EuFGGR5yVYe j9IQiHmHW9h93VN63xcC1c7Xte1fRjfCFUZ5LKbNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/titEF 5GGMfYT/7HKt0XX9z0zNp0JB4TSNhHQYw2U3I=; b=GrocfgvPd0KplKGufFFgGO K61DhWm//KL5/YqY6/omCOz0AFUXVJ2hmz5/HVjCvd4NGY4L/w8ysaO5FHtpLB5h V8V1NCG49ZaZuJwYGuvuNiBAP25/Ui00IG2PM1GEJfpG5JlCdFNQZurUbfVS+IUf t0FPZTVjeW1dXN3q6FkgxczbFykrTTe2jwaGz482eNI3nkgCN7ihYq8iQrkC3MOj wpPWqMyh4AWcsRKHCUxftDhToGvHyyfQGZx17aVnsDDHYmmxvHiaNYv8AZUxR+Vj +Fz0t2I154inyWjSbLhB3RflaB90REvaNboZSco3VJcGsUxWCxyDtLe4oFZjUKOA == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id CA482E4118; Fri, 28 Sep 2018 14:58:39 -0400 (EDT) Subject: Re: Why my query not using index to sort? To: Arup Rakshit Cc: Andreas Kretschmer , pgsql-general@lists.postgresql.org References: <20311.1538141875@sss.pgh.pa.us> <97DDEE09-FE33-43DB-A451-665F3535B5BA@zeit.io> <40D9D4B8-7D62-4E6E-B6E9-3F83DACA2D45@zeit.io> <61708e66-dcc6-6490-b876-979eff8c3efd@a-kretschmer.de> <05A26EE2-964C-4F53-8DB5-CD86D3D46D86@zeit.io> <2c10559c-21fa-bb73-3814-cec5583ddb6c@aklaver.com> <327CBA05-3910-416D-B1E0-175C44A256AE@zeit.io> From: Adrian Klaver Message-ID: <2be603be-1506-5a3d-c086-1fdd11d83bd3@aklaver.com> Date: Fri, 28 Sep 2018 11:58:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <327CBA05-3910-416D-B1E0-175C44A256AE@zeit.io> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/28/18 11:51 AM, Arup Rakshit wrote: > > Yes, I have shown the explain plan output. But in my application log the > sql query prints 1.7 to 1.9 ms. So you have added another layer to the process. The application is? The log settings are? What is being printed? Where is it being printed? > > > Thanks, > > Arup Rakshit > ar@zeit.io > -- Adrian Klaver adrian.klaver@aklaver.com