Re: [HACKERS] PID of backend - Mailing list pgsql-hackers

From Oleg Bartunov
Subject Re: [HACKERS] PID of backend
Date
Msg-id Pine.GSO.3.96.SK.990602190410.6766P-100000@ra
Whole thread Raw
In response to PID of backend  (Dmitry Samersoff <dms@wplus.net>)
Responses Re: [HACKERS] PID of backend
List pgsql-hackers
On Wed, 2 Jun 1999, Dmitry Samersoff wrote:

> Date: Wed, 02 Jun 1999 18:56:55 +0400 (MSD)
> From: Dmitry Samersoff <dms@wplus.net>
> To: pgsql-hackers@postgreSQL.org
> Subject: [HACKERS] PID of backend
> 
>  Hi World! 
> 
>  Does backend сreates pid file?
> 
>   Postgres 6.5 backend (current CVS) stop answering query
> 
>  >>> Jun  2 00:12:32 mail popper[17585]: PgSQL:ROLLBACK failed: PQsendQuery()
>  >>> There is no connection to the backend. 
> 
>  every 300 000 cursor allocation so I wish to restart it every 100 000
>  is there a way to do it simple than 
>    kill  `ps ax | awk .....`

Have you tried pidof postmaster ?
kill `pidof postmaster` | ....

Oleg

> 
>  Thank you!
> 
> PS:
>   6.4 works without problems with the same code, but I need more flexible
> locking on our new mail server.
> 
> 
> ---
> Dmitry Samersoff, dms@wplus.net, ICQ:3161705
> http://devnull.wplus.net
> * There will come soft rains ...
> 

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



pgsql-hackers by date:

Previous
From: Dmitry Samersoff
Date:
Subject: PID of backend
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] 6.4.2/AIX: syslog support seems alright ?