pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mathijs Brands <mathijs@ilse.nl>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Larry Rosenman <ler@lerctr.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PostgreSQL-ports <pgsql-ports@postgresql.org>
Cc: PostgreSQL-Admin <pgsql-admin@postgresql.org>
Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Date: Thu, 29 Mar 2001 00:51:26 +0200
Message-ID: <20010329005126.D26435@ilse.nl> (raw)
In-Reply-To: <200103282233.RAA24095@candle.pha.pa.us>
References: <20010329003006.A26435@ilse.nl>
	<200103282233.RAA24095@candle.pha.pa.us>

On Wed, Mar 28, 2001 at 05:33:05PM -0500, Bruce Momjian allegedly wrote:
> Sure 'ps -U' will work, but it was reported that on Solaris, plain ps
> can't show the postgres status display, while ucb/ps can.  I don't need
> specific columns.  What I need is the postgres status parameters, and if
> possible, a user restriction to ps for performance reasons.

My mistake. Have a look at this snippet from the ps manpage:

|      args  The command with all its arguments as  a  string.  The
|            implementation  may  truncate  this value to the field
|            width;  it  is  implementation-dependent  whether  any
|            further  truncation  occurs. It is unspecified whether
|            the string represented is a version  of  the  argument
|            list  as it was passed to the command when it started,
|            or is a version of the arguments as they may have been
|            modified  by  the  application.   Applications  cannot
|            depend on being able to modify their argument list and
|            having that modification be reflected in the output of
|            ps.  The Solaris implementation limits the  string  to
|            80  bytes;  the  string is the version of the argument
|            list as it was passed to the command when it started.

Note the last line...

The following must also seem familiar ;)

| The Hermit Hacker <scrappy@hub.org> writes:
| > On Wed, 29 Apr 1998, Bruce Momjian wrote:
| >> No reason for the exec().  I believe the only advantage is that it gives
| >> us a separate process name in the 'ps' listing.  I have looked into
| >> simulating this.
| > 	Under FreeBSD, there is:
| > setproctitle(3) - set the process title for ps 1
| > 	This isn't available under Solaris though, last I checked...
| 
| Setting the process title from C is messy, but there is a readily
| available reference.  The Berkeley sendmail distribution includes code
| to emulate setproctitle on practically every platform.  See conf.h and
| conf.c in any recent sendmail release.  Warning: it's grotty enough to
| make a strong man weep.  Don't read near mealtime ;-)
| 
| 			regards, tom lane

Regards,

Mathijs
-- 
It's not that perl programmers are idiots, it's that the language
rewards idiotic behavior in a way that no other language or tool has
ever done.
                                                    Erik Naggum



view thread (35+ messages)  latest in thread

Message-ID: <20010329005126.D26435@ilse.nl>
Permalink:  ../20010329005126.D26435@ilse.nl/
Also on:    postgresql.org/message-id/20010329005126.D26435@ilse.nl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mathijs@ilse.nl, pgman@candle.pha.pa.us, ler@lerctr.org, peter_e@gmx.net, pgsql-hackers@postgresql.org, pgsql-ports@postgresql.org
  Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
  In-Reply-To: <20010329005126.D26435@ilse.nl>
  References: <20010329003006.A26435@ilse.nl> <200103282233.RAA24095@candle.pha.pa.us> <20010329005126.D26435@ilse.nl>

* 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