Re: [HACKERS] Some items for the TODO list

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Some items for the TODO list
Дата
Msg-id 199807091840.OAA00712@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Some items for the TODO list  (Tom <tom@sdf.com>)
Ответы Re: [HACKERS] Some items for the TODO list
Список pgsql-hackers
>
> On Wed, 8 Jul 1998, Tom Lane wrote:
>
> > Things I'd like to see get in there before 6.4:
> >
> > 1. On HPUX, the new no-exec method of starting the backend means that
> > all the backends claim to be "postmaster"; there's no way to tell 'em
> > apart via ps(1).  There is some code in postgres.c that tries to update
> > the process title information by tweaking the original argv[] array, but
> > that just plain doesn't work under HPUX, nor under quite a few other
> > Unix variants.  I'm finding out that not being able to tell which
> > process is which is a real pain in the neck; I don't think it will be
> > acceptable for production use.  I think we are going to have to bite the
> > bullet and borrow the process-title-setting code from sendmail --- I
> > know it's ugly, but it *works* on many many Unixes.
>
>   Many UNIXes have a setproctitle() function, either in libc or libutil.
> I think a native function should be used if exists.

What is Linux doing with my changes.  Do you see all the process names
as postmaster?  Do you see the query type displayed as part of the ps
output.  We can use setproctitle/sendmail hack to change the process
name from postmaster to postgres, but are these sufficiently quick to
be run for every query to display the query type, i.e. SELECT.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: Tom
Дата:
Сообщение: Re: [HACKERS] Some items for the TODO list
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Some items for the TODO list