Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f2UEdFK53825 for ; Fri, 30 Mar 2001 09:39:15 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from diamond.waii.com (diamond.waii.com [198.3.192.201]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2TA6cU42233; Thu, 29 Mar 2001 05:06:42 -0500 (EST) (envelope-from gsez020@kryten.waii.com) Received: from mail1.wg.waii.com (mail.wg.waii.com [137.144.128.17] (may be forged)) by diamond.waii.com (8.9.1/8.9.1) with ESMTP id EAA03371; Thu, 29 Mar 2001 04:06:08 -0600 (CST) Received: from merlin.london.waii.com (merlin.london.waii.com [136.250.33.1]) by mail1.wg.waii.com (8.8.7/8.8.7) with ESMTP id EAA16004; Thu, 29 Mar 2001 04:05:52 -0600 Received: from kryten.bedford (kryten.bedford.waii.com [136.250.3.220]) by merlin.london.waii.com (8.8.4/8.8.4) with SMTP id LAA78250; Thu, 29 Mar 2001 11:06:05 +0100 Received: by kryten.bedford (SMI-8.6/SMI-SVR4) id LAA09863; Thu, 29 Mar 2001 11:05:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15043.2304.734950.907035@kryten.bedford.waii.com> Date: Thu, 29 Mar 2001 11:05:52 +0100 From: Pete Forman To: Tom Lane Cc: Mathijs Brands , Bruce Momjian , Larry Rosenman , Peter Eisentraut , PostgreSQL-development , PostgreSQL-ports , PostgreSQL-Admin Subject: Re: [HACKERS] Re: pgmonitor and Solaris In-Reply-To: <20643.985824759@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> <20010329013842.A27580@ilse.nl> <20451.985823307@sss.pgh.pa.us> <20010329020739.C28043@ilse.nl> <20643.985824759@sss.pgh.pa.us> X-Mailer: VM 6.92 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-Archive-Number: 200103/261 X-Sequence-Number: 1122 Tom Lane previously wrote: > 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? Tom Lane writes: > The interesting point about this is that the 7.0.3-on-2.7 > installation *is* managing to change its PS display. So either > Solaris 2.8 retrogressed (different predefined symbols maybe?), or > we broke the code since 7.0.3. > > Anyway I think the right thing to look at is why the 7.1 install is > not managing to update the display. The identifier sun is not set if the compiler is in -Xc mode. It would be safer to use to use __sun which is defined in all compiler modes. The symbols defined in all modes are __sun, __unix, __SUNPRO_C=0x500 (or 400, 420, etc.), __`uname -s`_`uname -r` (e.g. __SunOS_5_8), __sparc (SPARC), __sparcv9 (SPARC with -xarch=v9|v9a), __i386 (x86), __BUILTIN_VA_ARG_INCR, __SVR4. That applies to the native compiler. Perhaps someone else could establish what Solaris specific defines are available in gcc. -- Pete Forman -./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent pete.forman@westerngeco.com -./\.- opinion of Schlumberger, Baker http://www.crosswinds.net/~petef -./\.- Hughes or their divisions.