Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

In response to

Responses

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group