Re: [HACKERS] Re: pgmonitor and Solaris

From: Pete Forman <pete(dot)forman(at)westerngeco(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mathijs Brands <mathijs(at)ilse(dot)nl>, 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: pgmonitor and Solaris
Date: 2001-03-29 10:05:52
Message-ID: 15043.2304.734950.907035@kryten.bedford.waii.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-ports

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(dot)forman(at)westerngeco(dot)com -./\.- opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef -./\.- Hughes or their divisions.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jan Wieck 2001-03-29 12:12:34 Re: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Karel Zak 2001-03-29 09:20:02 Re: [ADMIN] Re: Re: [PORTS] pgmonitor and Solaris

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2001-03-29 12:12:34 Re: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Michael Meskes 2001-03-29 10:01:41 Re: ecpg bug and patch

Browse pgsql-ports by date

  From Date Subject
Next Message Jan Wieck 2001-03-29 12:12:34 Re: Re: [HACKERS] Re: [PORTS] pgmonitor and Solaris
Previous Message Karel Zak 2001-03-29 09:20:02 Re: [ADMIN] Re: Re: [PORTS] pgmonitor and Solaris