pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mathijs Brands <mathijs@ilse.nl>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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 01:38:42 +0200
Message-ID: <20010329013842.A27580@ilse.nl> (raw)
In-Reply-To: <20299.985821796@sss.pgh.pa.us>
References: <20010329003006.A26435@ilse.nl>
	<200103282233.RAA24095@candle.pha.pa.us>
	<20010329005126.D26435@ilse.nl>
	<20299.985821796@sss.pgh.pa.us>

On Wed, Mar 28, 2001 at 06:23:16PM -0500, Tom Lane allegedly wrote:
> > 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.
> 
> Looking at the sendmail code, it seems they use SPT_REUSEARGV (what we
> call PS_USE_CLOBBER_ARGV) technique on Solaris.  Possibly the problem is
> simply that line 65 in src/backend/utils/misc/ps_status.c fails to
> cover Solaris as one of the possible options:
> 
> #elif defined(__linux__) || defined(_AIX4) || defined(_AIX3) || defined(__sgi) || (defined(sun) && !defined(BSD)) || defined(ultrix) || defined(__ksr__) || defined(__osf__) || defined(__QNX__) || defined(__svr4__) || defined(__svr5__)
> #define PS_USE_CLOBBER_ARGV
> 
> Can someone check whether adding an appropriate Solaris symbol (which
> one?) fixes the problem?

PS_USE_CLOBBER_ARGV -is- used on Solaris. I just checked.

ilsedb:~$ uname -a
SunOS ilsedb 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-80
ilsedb:~$ cat test.c
#include <stdio.h>

main()
{
  printf("%d\n", __svr4__);
}
ilsedb:~$ gcc -o test test.c
ilsedb:~$ ./test
1

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: <20010329013842.A27580@ilse.nl>
Permalink:  ../20010329013842.A27580@ilse.nl/
Also on:    postgresql.org/message-id/20010329013842.A27580@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, tgl@sss.pgh.pa.us, 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: <20010329013842.A27580@ilse.nl>
  References: <20010329003006.A26435@ilse.nl> <200103282233.RAA24095@candle.pha.pa.us> <20010329005126.D26435@ilse.nl> <20299.985821796@sss.pgh.pa.us> <20010329013842.A27580@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