Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJyXO-0001Cp-0V for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Oct 2019 11:29:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJyUg-0004s2-53 for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Oct 2019 11:26:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJySj-0004pK-Km for pgsql-bugs@lists.postgresql.org; Mon, 14 Oct 2019 11:24:29 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iJySf-0004Bf-O2 for pgsql-bugs@lists.postgresql.org; Mon, 14 Oct 2019 11:24:28 +0000 Received: by mail-wr1-x442.google.com with SMTP id y19so19286623wrd.3 for ; Mon, 14 Oct 2019 04:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gk8VMth/96veKT6wYk4sh2wfczXHA+G05m+YvcriBKc=; b=XWZetyTT+6mwaVg9v6GpnteUev1HMUuERvmSg3K88U01KdziyVkWl7T9+enGOEVK+W kzOUlAvwD97lZKfjMW/dj3JVexKELMOYN4jOW7QrLUr/5Rv36A/enk4CBr9KZGuEz1Xq WtBQQl8prtU2jcSsCaaszj85BtQzBP+3TNP3gJPwpypNTKf9GPSMMrc8i5OWFCpBIjPH 5HZhmGtjRTHrhSid1Ocogltc2ZWuIS4Yk6aSwK7MOqIOlofMaPiTP4BM6q37Eb9O7nmW yUFuFIVCWjRMQlyOKBFaZWWJR34SWjPKgGtR8ltLMcqnvMUK1vSNVhQNCkgGQS4H0qIO Db2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gk8VMth/96veKT6wYk4sh2wfczXHA+G05m+YvcriBKc=; b=iYqTn4BZb/NVDxlRBWKuzcMMbrTu5pjGRlzVBniKSiwrOZTE+X29rrpQYYRX7P3Y4s muSI6BAriX+ceKfmWvpmL6sfIhHQLPLD+TuhSkKgisj1xr0yXgi8xytqbEALpJVixPAs nnnJpv+d0vFKJUyYxbgXn3oRwE2rMzBbIJs/Qe8ozsAV1+fZkhuxw712ongNXCPWQGq5 AKDXW41Rqjb+ofPTNF60KjaUtAr3pr/CDWBIEl0oxrByxWAYsWJ5WUwtAcAcK8hBnfed dGWCztWT6HJREjqOVHkjPD8xXVnPk9Kufqpf4iX22QepL4OQEFbDIRzkWpF3eVG93U++ Lblg== X-Gm-Message-State: APjAAAVJ1jnLlK5zx8FxgGSEiyrit0z1DMlnNtn6mkhUfc9QEYxlT0Q5 VLtCYaFl5mSdC82L/7zjgWFOfQ== X-Google-Smtp-Source: APXvYqyeJrJaP9XGjMdn4O97FoCceOWuzvjwthi66hep/9WZR7p4UjW8okthJLFCSRLHQvyjM33xQw== X-Received: by 2002:a5d:46cb:: with SMTP id g11mr11457057wrs.346.1571052264331; Mon, 14 Oct 2019 04:24:24 -0700 (PDT) Received: from localhost (cst-prg-20-100.cust.vodafone.cz. [46.135.20.100]) by smtp.gmail.com with ESMTPSA id z15sm4561130wrr.19.2019.10.14.04.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 04:24:23 -0700 (PDT) Date: Mon, 14 Oct 2019 13:24:21 +0200 From: Tomas Vondra To: a.gowri82@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16054: Slowest individual queries Message-ID: <20191014112421.k2n5bpvyguuibmgn@development> References: <16054-3b4039bbcf6d60b9@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <16054-3b4039bbcf6d60b9@postgresql.org> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Oct 14, 2019 at 02:24:10AM +0000, PG Bug reporting form wrote: >The following bug has been logged on the website: > >Bug reference: 16054 >Logged by: Gowri Sankar >Email address: a.gowri82@gmail.com >PostgreSQL version: 10.9 >Operating system: Amazon Linux >Description: > >Hi >We can see from below similar queries are frequently reported as Slowest >individual queries. During the same time period high Read IOPS .Please let >me know what is the cause for this fetch statements. Let me know as well >regards this more information. > >FETCH 100 FROM c2; >FETCH 100 FROM c6; >FETCH 100 FROM c2; > This is very clearly not a bug report, but a question about slow query. And a woefully incomplete one, because we have no idea what the query does, whether it's the cause or victim of high I/O usage, etc. Please read https://wiki.postgresql.org/wiki/Slow_Query_Questions and then post a question to either pgsql-general or pgsql-performance with more detailed info. regars -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services