Re: [HACKERS] Open 6.4 items

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Open 6.4 items
Дата
Msg-id 199810060156.VAA23130@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Open 6.4 items  ("Marc G. Fournier" <scrappy@hub.org>)
Список pgsql-hackers
> 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[0]
displays in the ps output.

If modification of argv[0] 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@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] need help with csh
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [ADMIN] COPY slows down; is it normal?