> On Fri, 2 Oct 1998, Bruce Momjian wrote:
> > Serious Bugs
> > ------------
> > change pg args for platforms that don't support argv changes
> > (setproctitle()?, sendmail hack?)
> I'll try and dive into this on Tuesday night...maybe even
> afternoon...will use sendmail as a basis for it, which *should* hit most
> of the operating systems out there...
Let me remind you what has to be done.
We need to use set_proctitle() for those platforms that have it. I
don't have it here, but Linux does.
Second, we need to determine if set_proctitle is a cheap function by
looking at the library source code.
Third, we need a 'configure' test to see if the modification of argv
displays in the ps output.
If modification of argv works, use it, as the current code does.
If not, then if set_proctitle() is available, use to change the backend
'ps' display on backend startup, and if it is cheap, use it to change
status for every command.
If a platform has neither, use the sendmail code to change the ps
display on backend startup only. The sendmail code it so slow to use
for every command, I think.
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
In response to
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 1998-10-06 02:00:48|
|Subject: Re: [ADMIN] COPY slows down; is it normal?|
|Previous:||From: Thomas G. Lockhart||Date: 1998-10-06 01:34:07|
|Subject: Re: [HACKERS] need help with csh|