pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: scrappy@hub.org
Cc: hackers@postgreSQL.org
Subject: Re: [HACKERS] Open 6.4 items
Date: Mon, 5 Oct 1998 21:56:50 -0400 (EDT)
Message-ID: <199810060156.VAA23130@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.02.9810050103080.17324-100000@hub.org>

> 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




view thread (141+ messages)  latest in thread

Message-ID: <199810060156.VAA23130@candle.pha.pa.us>
Permalink:  ../199810060156.VAA23130@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199810060156.VAA23130@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: maillist@candle.pha.pa.us, scrappy@hub.org, hackers@postgreSQL.org
  Subject: Re: [HACKERS] Open 6.4 items
  In-Reply-To: <199810060156.VAA23130@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox