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 1jQl7x-0002MW-2M for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2020 05:07:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jQl7v-0000Ro-S3 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2020 05:07:19 +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 1jQl7v-0000Re-L6 for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2020 05:07:19 +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 1jQl7s-0006lS-5b for pgsql-hackers@postgresql.org; Tue, 21 Apr 2020 05:07:19 +0000 Received: from hnk.local (p2421237-ipbf2725funabasi.chiba.ocn.ne.jp [122.24.33.237]) by oss.nttdata.com (Postfix) with ESMTPSA id 05E91602D0; Tue, 21 Apr 2020 14:07:09 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at oss.nttdata.com Subject: Re: It is not documented that pg_promote can exit standby mode From: Fujii Masao To: Tom Lane Cc: ikedamsh , pgsql-hackers@postgresql.org References: <17718.1587145597@sss.pgh.pa.us> Message-ID: <1116f41c-ae6e-1217-0bb6-87c176ece969@oss.nttdata.com> Date: Tue, 21 Apr 2020 14:07:09 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/04/20 20:38, Fujii Masao wrote: > > > On 2020/04/18 2:46, Tom Lane wrote: >> Fujii Masao writes: >>> Thanks for the report and the patch! It looks good to me. >>> Barring any objection, I will commit this patch. >> >> It might be worth writing "pg_promote() is called" >> (adding parentheses) to make it clearer that a function is being >> referred to.  No objection otherwise. > > Yes. Also Masahiro-san reported me, off-list, that there are other places > where pg_promote is mentioned without parentheses. I think it's better to > add parentheses there. Attached is the updated version of the patch. Pushed. Thanks! Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION