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 1jPInd-00084F-BU for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Apr 2020 04:40: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 1jPIna-0007D4-7i for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Apr 2020 04:40:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPIna-0007Cx-0h for pgsql-hackers@lists.postgresql.org; Fri, 17 Apr 2020 04:40:18 +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 1jPInP-0004xE-1Y for pgsql-hackers@postgresql.org; Fri, 17 Apr 2020 04:40:15 +0000 Received: from hnk.local (p2421237-ipbf2725funabasi.chiba.ocn.ne.jp [122.24.33.237]) by oss.nttdata.com (Postfix) with ESMTPSA id 24CB76064F; Fri, 17 Apr 2020 13:40:03 +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 To: ikedamsh , pgsql-hackers@postgresql.org References: From: Fujii Masao Message-ID: Date: Fri, 17 Apr 2020 13:40:02 +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/17 13:11, ikedamsh wrote: > Hi, > > The document(high-availability.sgml) says that there are only two ways to exit standby mode. > >  26.2.2. Standby Server Operation >  Standby mode is exited and the server switches to normal operation when pg_ctl promote is run or a trigger file is found (promote_trigger_file). > > But there is another way, by calling pg_promote function. > I think we need to document it, doesn't it? > > I attached a patch. Please review and let me know your thoughts. Thanks for the report and the patch! It looks good to me. Barring any objection, I will commit this patch. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION