From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jim Mercer <jim(at)reptiles(dot)org> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] proctitle patch (useful) |
Date: | 1999-12-24 21:08:40 |
Message-ID: | 199912242108.QAA18997@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
> when trying to diagnose problems, it is sometimes difficult to identify which
> backend process is connected to what client process.
>
> here is a patch for src/backend/commands/variable.c
>
> this patch adds a new variable PROCTITLE.
>
> this allows client processes to set the backend proctitle to something useful:
>
> $ ps auxww | grep post
> 11080 ?? Is 0:00.06 postmaster -S -i -d 3 -o -F (postgres)
> 11125 ?? I 0:00.42 (postgres)
>
> $ psql database
> database=> SET PROCTITLE = 'testing proctitle 123';
> SET VARIABLE
> database=>
>
> $ ps ax | grep post
> 11080 ?? Is 0:00.06 postmaster -S -i -d 3 -o -F (postgres)
> 11125 ?? I 0:00.21 postmaster: testing proctitle 123 (postgres)
>
>
> i'm not overly familiar with GNU configure, so i'll leave it up to the people
> who manage the source to figure out a clean portable way of enabling the
> feature.
If we decide this is a nice feature addition, I would like it to use our
main PS_SET_STATUS() code rather than proctitle().
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Mercer | 1999-12-24 21:51:32 | Re: [GENERAL] proctitle patch (useful) |
Previous Message | Bruce Momjian | 1999-12-24 20:28:42 | Re: [GENERAL] proctitle patch (useful) |