Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jImTn-0004KO-Hx for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 04:56:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jImTm-0003oj-8U for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 04:56:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jImTm-0003oc-1T for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2020 04:56:54 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jImTi-0001et-Gv for pgsql-hackers@postgresql.org; Mon, 30 Mar 2020 04:56:53 +0000 Received: from hnk.local (p2421237-ipbf2725funabasi.chiba.ocn.ne.jp [122.24.33.237]) by oss.nttdata.com (Postfix) with ESMTPSA id 541636011E; Mon, 30 Mar 2020 13:56:44 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at oss.nttdata.com Subject: Re: Planning counters in pg_stat_statements (using pgss_store) To: Julien Rouhaud Cc: Sergei Kornilov , "imai.yoshikazu@fujitsu.com" , legrand legrand , "pgsql-hackers@postgresql.org" References: <20200316214912.iakenhp7vyd37hmg@nol> <6300601584711975@vla4-87a00c2d2b1b.qloud-c.yandex.net> <20200320193004.rqgf3iim4fugq3sm@nol> <20200325134553.GA14054@nol> <20200326132242.GA80836@nol> <20200327100001.qarktrnxldmoxzgd@nol> <807c7d80-c748-3e86-d6e7-cfa01184ee92@oss.nttdata.com> <20200329061549.smtokn3ip5pqldia@nol> From: Fujii Masao Message-ID: <8224bfdf-dcf8-648f-e0d8-1db1d5c215ee@oss.nttdata.com> Date: Mon, 30 Mar 2020 13:56:43 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200329061549.smtokn3ip5pqldia@nol> 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 2020/03/29 15:15, Julien Rouhaud wrote: > On Fri, Mar 27, 2020 at 03:42:50PM +0100, Julien Rouhaud wrote: >> On Fri, Mar 27, 2020 at 2:01 PM Fujii Masao wrote: >>> >> >>> So what I'd like to say is that the information that users are interested >>> in would vary on each situation and case. At least for me it seems >>> enough for pgss to report only the basic information. Then users >>> can calculate to get the numbers (like total_time) they're interested in, >>> from those basic information. >>> >>> But of course, I'd like to hear more opinions about this... >> >> +1 >> >> Unless someone chime in by tomorrow, I'll just drop the sum as it >> seems less controversial and not a blocker in userland if users are >> interested. > > Done in attached v11, with also the s/querytext/query_text/ discrepancy noted > previously. Thanks for updating the patch! But I still think query_string is better name because it's used in other several places, for the sake of consistency. So I changed the argument name that way and commit the 0001 patch. If you think query_text is better, let's keep discussing this topic! Anyway many thanks for your great job! >>>> I also exported BufferUsageAccumDiff as mentioned previously, as it seems >>>> clearner and will avoid future useless code churn, and run pgindent. >>> >>> Many thanks!! I'm thinking to commit this part separately. >>> So I made that patch based on your patch. Attached. >> >> Thanks! It looks good to me. > > I also kept that part in a distinct commit for convenience. I also pushed 0002 patch. Thanks! I will review 0003 patch again. Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters