Re: We should Axe /contrib/start-scripts - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: We should Axe /contrib/start-scripts
Date
Msg-id 200908192102.n7JL2sj24691@momjian.us
Whole thread Raw
In response to Re: We should Axe /contrib/start-scripts  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Josh Berkus wrote:
> Tom,
> 
> >> "# What to use to start up the postmaster (we do NOT use pg_ctl for this,
> >> # as it adds no value and can cause the postmaster to misrecognize a stale
> >> # lock file)
> >> DAEMON="$prefix/bin/postmaster"
> > 
> > And?  That statement was and remains perfectly correct.  We don't use
> > pg_ctl to start the postmaster in the Linux initscripts, either.
> 
> Then WTF do we have pg_ctl, and why do our docs tell people to use it?

I assume on boot we _know_ there can't be another postmaster running,
while normal pg_ctl does not know that.  Perhaps we just need to state
that in the comment.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: We should Axe /contrib/start-scripts
Next
From: Tom Lane
Date:
Subject: Re: We should Axe /contrib/start-scripts