Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f2UEa0K53418 for ; Fri, 30 Mar 2001 09:36:00 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from serv1.ilse.nl (serv1.ilse.nl [212.189.131.11]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2SNcmU24337; Wed, 28 Mar 2001 18:38:48 -0500 (EST) (envelope-from mathijs@serv0.ilse.nl) Received: from serv0.ilse.nl (intra.ilse.nl [10.1.8.249]) by serv1.ilse.nl (8.11.0/8.10.2) with ESMTP id f2SNcj703680; Thu, 29 Mar 2001 01:38:45 +0200 (MEST) Received: (from mathijs@localhost) by serv0.ilse.nl (8.11.1/8.11.1) id f2SNcgG27781; Thu, 29 Mar 2001 01:38:42 +0200 (CEST) (envelope-from mathijs) Date: Thu, 29 Mar 2001 01:38:42 +0200 From: Mathijs Brands To: Tom Lane Cc: Bruce Momjian , Larry Rosenman , Peter Eisentraut , PostgreSQL-development , PostgreSQL-ports , PostgreSQL-Admin Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20299.985821796@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Wed, Mar 28, 2001 at 06:23:16PM -0500 X-Unexpected-Header: The Spanish Inquisition X-Archive-Number: 200103/259 X-Sequence-Number: 1125 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 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