Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris

From: Mathijs Brands <mathijs(at)ilse(dot)nl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Larry Rosenman <ler(at)lerctr(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL-ports <pgsql-ports(at)postgresql(dot)org>, PostgreSQL-Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Date: 2001-03-28 23:38:42
Message-ID: 20010329013842.A27580@ilse.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-ports

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2001-03-28 23:48:27 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Larry Rosenman 2001-03-28 23:36:30 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-03-28 23:48:27 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Larry Rosenman 2001-03-28 23:36:30 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2001-03-28 23:48:27 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Larry Rosenman 2001-03-28 23:36:30 Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris