Re: LWLock/ShmemIndex startup question

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: LWLock/ShmemIndex startup question
Дата
Msg-id 200401230456.i0N4ue801860@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: LWLock/ShmemIndex startup question  (Claudio Natoli <claudio.natoli@memetrics.com>)
Список 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: LWLock/ShmemIndex startup question
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Permissions and PGSQL