Tatsuo Ishii writes:
> Moreover if postmaster detaches itself to be a deamon, nohup is not
> necessary at all.
Right. Scrap that thought then.
> BTW, for the startup script, I don't think we need to use pg_ctl.
> Invoking postmaster directry seems enough for me. The only reason for
> using pg_ctl to start postmaster is waiting for postmaster up and
> running.
Waiting for the postmaster to start up is really only useful when you
start it interactively, either during development, or if you need to
repair a problem. In either of these cases you might as well (and
probably rather should) look at the log output yourself, i.e., just use
'postmaster'.
> In most cases the time to recover DB would not be so
> long. And if the recovery took too long time, we would not want to be
> blocked in the middle of the boot sequence anyway.
Exactly. No waiting on startup by default then?
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/