Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJZX4-0000Ut-P7 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2020 09:19:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJZX3-0000Jw-Bm for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2020 09:19:33 +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 1jJZX3-0000Jo-4r for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2020 09:19:33 +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 1jJZWw-0005hR-LU for pgsql-hackers@postgresql.org; Wed, 01 Apr 2020 09:19:32 +0000 Received: from hnk.local (sp49-97-93-247.msc.spmode.ne.jp [49.97.93.247]) by oss.nttdata.com (Postfix) with ESMTPSA id 96531602A6; Wed, 1 Apr 2020 18:19:22 +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: <20200329061549.smtokn3ip5pqldia@nol> <8224bfdf-dcf8-648f-e0d8-1db1d5c215ee@oss.nttdata.com> <20200330080359.GD79261@nol> <1c348d6a-02e5-ef14-b9e7-22f7f36fcee1@oss.nttdata.com> <8c6449d4-5fd7-f544-182b-a4bb7da1d18c@oss.nttdata.com> <20200331060307.e7kypfynz7jous62@nol> <20200331073321.bhnx2p63gp5px37f@nol> <20200331184217.tf3x534uz4vusgmp@nol> From: Fujii Masao Message-ID: Date: Wed, 1 Apr 2020 18:19:21 +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: <20200331184217.tf3x534uz4vusgmp@nol> 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/04/01 3:42, Julien Rouhaud wrote: > On Wed, Apr 01, 2020 at 02:43:10AM +0900, Fujii Masao wrote: >> >> >> On 2020/03/31 16:33, Julien Rouhaud wrote: >>> >>> v12 attached! >> >> Thanks for updating the patch! The patch looks good to me. >> >> I applied minor and cosmetic changes into the patch. Attached is >> the updated version of the patch. Barring any objection, I'd like to >> commit this version. >> >> BTW, the minor and cosmetic changes that I applied are, for example, >> >> - Rename pgss_planner_hook to pgss_planner for the sake of consistency. >> Other function using hook in pgss doesn't use "_hook" in their names, too. >> - Make pgss_planner use PG_FINALLY() instead of PG_CATCH(). >> - Make PGSS_NUMKIND as the last value in enum pgssStoreKind. > > > +1, and the PGSS_INVALID is also way better. > > >> - Update the sample output in the document. >> etc > > > Thanks a lot. It all looks good to me! Thanks for the check! I tried to pick up the names of authors and reviewers of this patch, from the past discussions. Then I'm thinking to write the followings in the commit log. Are there any other developers that should be credited as author or reviewer? Author: Julien Rouhaud, Pascal Legrand, Thomas Munro, Fujii Masao Reviewed-by: Sergei Kornilov, Tomas Vondra, Yoshikazu Imai, Haribabu Kommi, Tom Lane Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters