Re: [HACKERS] posmaster failed under high load - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] posmaster failed under high load
Date
Msg-id 199905060636.CAA15866@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] posmaster failed under high load  (Taral <taral@taral.net>)
Responses Re: [HACKERS] posmaster failed under high load  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> On Thu, 6 May 1999, Oleg Bartunov wrote:
> 
> > How to explain that process with PID 701 which shown in ps output
> > as (postmaster) after some time becomes looks as usual postgres
> 
> Because 'postmaster' is written in the kernel task_struct, whereas the
> task's argv[] says 'postgres'.
> 
> The only way to get around this is to do an execv(), at which point the
> kernel will recopy argv[0].

We used to do execv(), but stopped doing it for performance reasons.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] numeric data type on 6.5
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] can't compile