Re: LWLock/ShmemIndex startup question

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'Tom Lane '" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "''''pgsql-hackers(at)postgresql(dot)org' ' ' '" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LWLock/ShmemIndex startup question
Date: 2004-01-23 04:56:40
Message-ID: 200401230456.i0N4ue801860@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Claudio Natoli wrote:
>
>
> Tom Lane writes:
> > [cvs is your friend...] It appears to have been added as part of the
> > MinGW porting work last May. I don't have much faith in it; as far as
> > I heard the MinGW port never got further than making the client-side
> > code work, and so this file has no real-world testing.
>
> FWIW, I've done a code walk-through, and it looks ok (lack of real-world
> testing notwithstanding), and actually does use the Win32 sema set. The only
> real problem is that it calls ShmemInitStruct in semget, which ultimately
> gets us into bootstrap hell (without native spinlocks, at least).
>
> Also, as far as using it in the "hardware independent" version of spin-locks
> go, it makes kernel calls, which, as spin.c comments: "is too slow to be
> very useful".

Yep, native gcc TAS assembler should work fine on MinGW with gcc.

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-01-23 05:02:35 Re: Permissions and PGSQL
Previous Message Bruce Momjian 2004-01-23 04:56:08 Re: LWLock/ShmemIndex startup question