Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-hackerspgsql-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

pgsql-ports by date

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

pgsql-hackers by date

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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group