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 1g9cT0-0007F4-MX for pgsql-general@arkaria.postgresql.org; Mon, 08 Oct 2018 20:49:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9cSz-0001nj-3v for pgsql-general@arkaria.postgresql.org; Mon, 08 Oct 2018 20:49:25 +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 1g9cSy-0001n4-MZ for pgsql-general@lists.postgresql.org; Mon, 08 Oct 2018 20:49:24 +0000 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9cSr-0000M1-T6 for pgsql-general@postgresql.org; Mon, 08 Oct 2018 20:49:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1539031757; x=1570567757; h=subject:from:to:references:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=yesDngH/wanJn6rH/kTxJEizPeUkoVCekmBQuasgib0=; b=SEelguRZKKuK/c6xdq0+b18863TbwAbwFKs4pMAS4S63mWHQA+lNF/SX s8NB3tsUqg1M1IcQm6OFfdjJo4T3wrpxdTTqMCan66aaWcCHxz3R6Yymu EE90WOI923h5RsnY3JCZS4NUbM7pf40Xc02EmJZdWA6E40icoQyajW8DF o=; X-IronPort-AV: E=Sophos;i="5.54,357,1534809600"; d="scan'208";a="361350043" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Oct 2018 20:49:15 +0000 Received: from EX13MTAUWA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w98KnEo4008086 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Mon, 8 Oct 2018 20:49:15 GMT Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 8 Oct 2018 20:49:14 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.162.180) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 8 Oct 2018 20:49:14 +0000 Subject: Re: survey: pg_stat_statements total_time and entry deallocation From: Jeremy Schneider To: "pgsql-general@postgresql.org" References: <0e8b7eb4-1621-2c53-6144-af095e64b787@amazon.com> Message-ID: <8ac05674-5d02-7ae9-8457-d476623af496@amazon.com> Date: Mon, 8 Oct 2018 13:49:14 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.162.180] X-ClientProxiedBy: EX13D16UWC003.ant.amazon.com (10.43.162.15) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/5/18 13:47, Jeremy Schneider wrote: > In addition to Kim's results and my initial data, a handful of people > have forwarded results to me over the past few weeks.  Here's what came > my way, aggregated and anonymized. One more from a 9.4 system with default 5000 entries. Note that this is a prod system but had only been gathering statements stats for about three and a half days - the admin enabled pg_stat_statements last week just to get stats for this email thread! (THANKS!!!) While only one system in this thread has shown significant time that would have rolled off, it is notable that the distribution of time across buckets is always fairly lumpy. In fact I think that a good number of systems have had more time in bucket 18 than bucket 19. bucket entries max_calls total_time pct_time rows pct_rows ------- -------- ---------- ----------- --------- --------- --------- 1 248 1 1165381 0.24 9307526 3.67 2 248 1 278185 0.06 1947097 0.77 3 248 1 3223514 0.67 17897919 7.05 4 248 1 8722415 1.83 811022 0.32 5 248 1 413639 0.09 2103781 0.83 6 247 1 437788 0.09 2614929 1.03 7 247 1 202555 0.04 2094212 0.83 8 247 1 121673 0.03 350547 0.14 9 247 1 9299903 1.95 63600921 25.06 10 247 1 3642767 0.76 40022469 15.77 11 247 1 263853 0.06 2226582 0.88 12 247 1 4155721 0.87 14599659 5.75 13 247 1 1093557 0.23 16616897 6.55 14 247 1 19171119 4.01 686112 0.27 15 247 4 6929727 1.45 3761442 1.48 16 247 14 396828 0.08 73952 0.03 17 247 61 1888290 0.4 112077 0.04 18 247 326 131894870 27.6 5701711 2.25 19 247 1692 7856099 1.64 1529441 0.6 20 247 8120695 276724834 57.91 67741576 26.69 Thank you to everyone who is sending stats back! If anyone else out there is reading this thread, it's never too late to add a little additional data to the pile. :) -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services