Re: [HACKERS] New pg_ctl has retrogressed in error messages

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] New pg_ctl has retrogressed in error messages
Date: 2004-05-31 17:56:59
Message-ID: 200405311756.i4VHuxb05190@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> 7.4, on not finding a postmaster:
>
> [tgl(at)rh1 pgsql]$ pg_ctl stop
> /home/tgl/version74/bin/pg_ctl: line 274: kill: (15273) - No such process
> waiting for postmaster to shut down................................................................ failed
> pg_ctl: postmaster does not shut down
>
> CVS tip, same scenario:
>
> [tgl(at)rh1 pgsql]$ pg_ctl stop
> stop signal failed
>
> Not waiting for the results of a failed kill() is good, but the error
> message is exceedingly unhelpful. It should mention the PID it tried to
> kill and give the errno string. Perhaps
>
> failed to signal postmaster process 15273: No such process

OK, new output is:

$ aspg pg_ctl stop
stop signal failed (PID: 3603): No such process

I also changed all the pid variables to use pid_t.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 6.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-05-31 18:09:57 Official Freeze Date for 7.5: July 1st, 2004
Previous Message Tom Lane 2004-05-31 17:14:19 New pg_ctl has retrogressed in error messages

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-05-31 18:55:23 Re: CVS tip problems
Previous Message Tom Lane 2004-05-31 17:14:19 New pg_ctl has retrogressed in error messages