Re: [BUGS] pg_ctl is fragile

2002-11-09 Thread Peter Eisentraut
Neil Conway writes: > Tom Lane <[EMAIL PROTECTED]> writes: > > Doesn't seem like kill's exit code is going to tell you enough. > > If you got, say, "Permission denied" rather than "No such process", > > you shouldn't report that the postmaster isn't running. > > Ok, fair enough -- so is there any

Re: [BUGS] pg_ctl is fragile

2002-11-07 Thread Bruce Momjian
Neil Conway wrote: > Tom Lane <[EMAIL PROTECTED]> writes: > > Doesn't seem like kill's exit code is going to tell you enough. > > If you got, say, "Permission denied" rather than "No such process", > > you shouldn't report that the postmaster isn't running. > > Ok, fair enough -- so is there any w

Re: [BUGS] pg_ctl is fragile

2002-11-07 Thread Neil Conway
Tom Lane <[EMAIL PROTECTED]> writes: > Doesn't seem like kill's exit code is going to tell you enough. > If you got, say, "Permission denied" rather than "No such process", > you shouldn't report that the postmaster isn't running. Ok, fair enough -- so is there any way to improve this behavior? C

Re: [BUGS] pg_ctl is fragile

2002-11-07 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > After an unclean shutdown (e.g. a kernel crash), pg_ctl isn't smart > enough to realize that it won't be able to successfully shut down the > postmaster: > $ pg_ctl -D /pgsql/data stop > /pgsql/bin/pg_ctl: line 269: kill: (2039) - No such process > waiting