pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: ikedamsh <ikedamsh@oss.nttdata.com>
To: pgsql-hackers@postgresql.org
Subject: Re: It is not documented that pg_promote can exit standby mode
Date: Fri, 17 Apr 2020 13:40:02 +0900
Message-ID: <a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com> (raw)
In-Reply-To: <de0068417a9f4046bac693cbcc00bdc9@oss.nttdata.com>
References: <de0068417a9f4046bac693cbcc00bdc9@oss.nttdata.com>



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





view thread (7+ messages)  latest in thread

Message-ID: <a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com>
Permalink:  ../a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com/
Also on:    postgresql.org/message-id/a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, ikedamsh@oss.nttdata.com
  Subject: Re: It is not documented that pg_promote can exit standby mode
  In-Reply-To: <a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com>
  References: <de0068417a9f4046bac693cbcc00bdc9@oss.nttdata.com> <a0df06f3-4441-ce7f-582e-ee4c023ddf1e@oss.nttdata.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox