Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2SNaiU23788; Wed, 28 Mar 2001 18:36:44 -0500 (EST) (envelope-from ler@lerctr.org) Received: from ler-freebie.iadfw.net (ler-freebie.iadfw.net [206.66.13.221]) by lerami.lerctr.org (8.12.0.Beta5/8.12.0.Beta5/20010318/$Revision: 1.18 $) with SMTP id f2SNaT35003928; Wed, 28 Mar 2001 17:36:30 -0600 (CST) (envelope-from ler@lerctr.org) From: Larry Rosenman Date: Wed, 28 Mar 2001 23:36:30 GMT Message-ID: <20010328.23363000@ler-freebie.iadfw.net> Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris To: Tom Lane CC: Mathijs Brands , Bruce Momjian , =?US-ASCII?Q?Larry?= Rosenman , Peter Eisentraut , PostgreSQL-development , =?US-ASCII?Q?PostgreSQL-ports?= , =?US-ASCII?Q?PostgreSQL-Admin?= 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> X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2; Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id f2SNajW23789 X-Archive-Number: 200103/219 X-Sequence-Number: 1066 FYI, the WU-FTPD code (2.6.0 or better) has a couple of more platforms including UnixWare. The UnixWare code will need /dev/kmem permission to change it's stuff, so I don't know whether we want to do this or not, but if people are looking at the ps stuff, please look at this as well. Larry Rosenman -- Larry Rosenman http://www.lerctr.org/~ler/ Phone: +1 972 414 9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 US >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 3/28/01, 5:23:16 PM, Tom Lane wrote regarding Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris : > > 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? > The coding technique embodied in lines 63-67 pretty much sucks anyway, > since this platform-specific knowledge ought to be out in the port.h > files rather than hidden in the guts of the system. I don't want to > touch it right now, but I think we ought to have things like > #define PS_STATUS_TECHNIQUE PS_USE_CLOBBER_ARGV > in the port.h files, rather than these massive #ifdefs. > regards, tom lane