<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thank you for responding to my post. I do understand what you're
      saying, that's why I don't understand why I'm getting the old
      master node when I use %H, backend0 is ...0 backend1 is ...1. When
      I test the failover I'm getting: <br>
    </p>
    <pre wrap="">ssh -T <a class="moz-txt-link-abbreviated" href="mailto:postgres@10.16.0.121">postgres@...0</a> /usr/pgsql-9.5/bin/pg_ctl -D
/var/lib/pgsql/9.6/data promote 


when instead I want it to be:


</pre>
    <pre wrap="">ssh -T <a class="moz-txt-link-abbreviated" href="mailto:postgres@10.16.0.121">postgres@...1</a> /usr/pgsql-9.6/bin/pg_ctl -D
/var/lib/pgsql/9.6/data promote 


Also why would it change my directory path from pgsql-9.6 to pgsql-9.5 when that is coded in (not a variable)? 

Thanks again

</pre>
    <div class="moz-cite-prefix">On 01/18/2018 03:39 PM, Tatsuo Ishii
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180119.073901.2059827019941395695.t-ishii@sraoss.co.jp">
      <pre wrap="">H is "host name of the new master node", which means the first live
backend host name. For example if you have backend_hostname0,
backend_hostname1, backend_hostname2 and backend_hostname0 goes down,
then %H = backend_hostname1. You need to promote the standby only if
your primary node goes down. If the standby</pre>
    </blockquote>
    <br>
  </body>
</html>