Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2SNBxU18339; Wed, 28 Mar 2001 18:11:59 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id SAA29291; Wed, 28 Mar 2001 18:07:46 -0500 (EST) From: Bruce Momjian Message-Id: <200103282307.SAA29291@candle.pha.pa.us> Subject: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris In-Reply-To: <20010329005126.D26435@ilse.nl> "from Mathijs Brands at Mar 29, 2001 00:51:26 am" To: Mathijs Brands Date: Wed, 28 Mar 2001 18:07:46 -0500 (EST) CC: Larry Rosenman , Peter Eisentraut , PostgreSQL-development , PostgreSQL-ports , PostgreSQL-Admin X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200103/217 X-Sequence-Number: 1064 > 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... OK, I need someone on Solaris to test ps and /ucb/ps with regard to user restriction inside ps, and display of PostgreSQL status display. I have uploaded a new pgmonitor 0.33 version that has a show_all configuration parameter. This will show all PostgreSQL-owned processes for use on operating systems that don't have PostgreSQL status display. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026