Re: ISM shared memory on solaris

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Wilmes <jwilmes(at)cisco(dot)com>, pgsql-bugs(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org, Nick Johnson <njohnson(at)cisco(dot)com>
Subject: Re: ISM shared memory on solaris
Date: 2003-10-27 18:30:14
Message-ID: 200310271830.h9RIUEg14830@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>
> > ! #if defined(sun) && defined(__sparc__)
> > /* use intimate shared memory on SPARC Solaris */
> > memAddress = shmat(shmid, 0, SHM_SHARE_MMU);
> > #else
>
> I think this is going in the wrong direction. Why isn't the code just
>
> #if defined(SHM_SHARE_MMU)
> /* use intimate shared memory on Solaris */
> memAddress = shmat(shmid, 0, SHM_SHARE_MMU);
> #else
>
> If the symbol is available I think we probably want to use it. It is an
> O/S issue, not a hardware issue, and so the test on __sparc__ seems
> quite wrongheaded ...

What I was hoping to do with the define test was to throw an error if we
don't find intimate shared memory on Solaris, but the define doesn't
work fir i386/Solaris so we are probably better going with the define as
you suggest --- I just hope we don't fail to include a file and somehow
miss it on some version of Solaris.

Change applied.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Josh Wilmes 2003-10-27 18:36:34 Re: ISM shared memory on solaris
Previous Message Tom Lane 2003-10-27 18:14:44 Re: ISM shared memory on solaris

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Wilmes 2003-10-27 18:36:34 Re: ISM shared memory on solaris
Previous Message Tom Lane 2003-10-27 18:14:44 Re: ISM shared memory on solaris