[HACKERS] Pg_ctl promote -- wait for slave to be promoted fully ?

2012-08-07 Thread Magnus Hagander
Should we consider if we can make pg_ctl -w work for promote as well? The main problem is, I guess, that it can't log in - so wed' need something like PQping() that actually checked if it was master or slave? //Magnus -- Forwarded message -- From: Manoj Govindassamy

Re: [HACKERS] Pg_ctl promote -- wait for slave to be promoted fully ?

2012-08-07 Thread Fujii Masao
On Tue, Aug 7, 2012 at 10:22 PM, Magnus Hagander mag...@hagander.net wrote: Should we consider if we can make pg_ctl -w work for promote as well? +1 The main problem is, I guess, that it can't log in - so wed' need something like PQping() that actually checked if it was master or slave?

Re: [HACKERS] Pg_ctl promote -- wait for slave to be promoted fully ?

2012-08-07 Thread Robert Haas
On Tue, Aug 7, 2012 at 1:09 PM, Fujii Masao masao.fu...@gmail.com wrote: On Tue, Aug 7, 2012 at 10:22 PM, Magnus Hagander mag...@hagander.net wrote: Should we consider if we can make pg_ctl -w work for promote as well? +1 The main problem is, I guess, that it can't log in - so wed' need