pg_ctl is fragile - Mailing list pgsql-bugs

From Neil Conway
Subject pg_ctl is fragile
Date
Msg-id 8765v9dpvc.fsf@mailbox.samurai.com
Whole thread Raw
Responses Re: pg_ctl is fragile  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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 for postmaster to shut down................................................................ failed
pg_ctl: postmaster does not shut down

We should probably check the exit code produced by kill(1).

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with a sequence being acted on by an on insert rule.
Next
From: Neil Conway
Date:
Subject: Re: Cannot assign ROWTYPE, RECORD variables in PL/pgSQL