Re: pg_ctl restart - behaviour based on wrong instance

Magnus Hagander <magnus@hagander.net>

From: Magnus Hagander <magnus@hagander.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: Robert Haas <robertmhaas@gmail.com>, Fujii Masao <masao.fujii@gmail.com>, Erik Rijkers <er@xs4all.nl>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2011-10-18T14:02:06Z
Lists: pgsql-hackers
On Wednesday, October 12, 2011, Bruce Momjian wrote:

> Magnus Hagander wrote:
> > > I looked over this issue and I don't thinking having pg_ctl restart
> fall
> > > back to 'start' is a good solution. ?I am concerned about cases where
> we
> > > start a different server without shutting down the old server, for some
> > > reason. ?When they say 'restart', I think we have to assume they want a
> > > restart.
> > >
> > > What I did do was to document that not backing up postmaster.pid and
> > > postmaster.opts might help prevent pg_ctl from getting confused.
> >
> > Should we exclude postmaster.opts from streaming base backups? We
> > already exclude postmaster.pid...
>
> Uh, I think so, unless my analysis was wrong.
>
>
Ok, fixed and applied.

//Magnus



-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/