pg_ctl is fragile

From: Neil Conway <neilc(at)samurai(dot)com>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: pg_ctl is fragile
Date: 2002-11-07 21:36:07
Message-ID: 8765v9dpvc.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)samurai(dot)com> || PGP Key ID: DB3C29FC

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Neil Conway 2002-11-07 21:56:35 Re: Cannot assign ROWTYPE, RECORD variables in PL/pgSQL
Previous Message Reto Stamm 2002-11-07 18:56:25 Re: Sequence Start number not dumped correctly