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.92) (envelope-from ) id 1jHHmG-0001ns-Lx for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2020 01:57:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHHmF-00026b-FI for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2020 01:57:47 +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 1jHHlX-00060W-U1 for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2020 01:57:04 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHHlT-0005Ji-Jx for pgsql-hackers@postgresql.org; Thu, 26 Mar 2020 01:57:01 +0000 Received: from hnk.local (p2421237-ipbf2725funabasi.chiba.ocn.ne.jp [122.24.33.237]) by oss.nttdata.com (Postfix) with ESMTPSA id 1AB0E60562; Thu, 26 Mar 2020 10:56:56 +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: Sergei Kornilov , Julien Rouhaud Cc: "imai.yoshikazu@fujitsu.com" , legrand legrand , "pgsql-hackers@postgresql.org" References: <1584180240397-0.post@n3.nabble.com> <20200314172733.mg7qpyumlyythm25@nol> <20200316214912.iakenhp7vyd37hmg@nol> <6300601584711975@vla4-87a00c2d2b1b.qloud-c.yandex.net> <20200320193004.rqgf3iim4fugq3sm@nol> <17190991585152609@sas1-d3a1bf2bd2e7.qloud-c.yandex.net> From: Fujii Masao Message-ID: <4e2b3576-63ab-3a7b-0237-eeac6f17e582@oss.nttdata.com> Date: Thu, 26 Mar 2020 10:56:55 +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: <17190991585152609@sas1-d3a1bf2bd2e7.qloud-c.yandex.net> Content-Type: text/plain; charset=utf-8; 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/26 2:17, Sergei Kornilov wrote: > Hello > >> WAL usage patch [1] increments this version to 1_4 instead of 1_8. >> I *guess* that's because previously this version was maintained >> independently from pg_stat_statements' version. For example, >> pg_stat_statements 1.4 seems to have used PGSS_V1_3. > > As far as I remember, this was my proposed change in review a year ago. > I think that having a clear analogy between the extension version and the function name would be more clear than sequential numbering of PGSS_V with different extension versions. > For pgss 1.4 it was fine to use PGSS_V1_3, because there were no changes in pg_stat_statements_internal. > pg_stat_statements 1.3 will call pg_stat_statements_1_3 > pg_stat_statements 1.4 - 1.7 will still call pg_stat_statements_1_3. In my opinion, this is the correct naming, since we did not need a new function. > but pg_stat_statements 1.8 will call pg_stat_statements_1_4. It's not confusing? Yeah, I withdraw my comment and agree that 1_8 looks less confusing. Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters