Re: Configure template change to use SysV Semaphors on darwin

From: "Takayuki Tsunakawa" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
To: "Chris Marcellino" <cmarcellino(at)apple(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Configure template change to use SysV Semaphors on darwin
Date: 2007-02-08 01:43:06
Message-ID: 009e01c74b22$7b0cb4b0$19527c0a@OPERAO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> Chris Marcellino <cmarcellino(at)apple(dot)com> writes:
>> I searched through the archives and I can't find a mention of why
the
>> posix_sema code was written for Darwin.

If I understand Tom-san's English, POSIX sema has no problem on Linux
(I'm afraid I'm misreading Tom-san's comment.) If so, can you also
change the configure to use POSIX sema on Linux by default, after some
performance benchmark (pgbench is enough)?
If the users are freed from the tedious kernel IPC settings, the
impression they have on PostgreSQL will improve, I think. IPC is the
concept for software developers, not for software users. Currently,
"IPC setting? What is that? Windows requires no such annoying task.
Why do I have to do such a boring task for server software." "Oh,
PostgreSQL requires users to set kernel parameters unlike other
middleware. PostgreSQL is easy!"

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chris Marcellino" <cmarcellino(at)apple(dot)com>
Cc: <pgsql-patches(at)postgresql(dot)org>
Sent: Thursday, February 08, 2007 9:54 AM
Subject: Re: [PATCHES] Configure template change to use SysV Semaphors
on darwin

> Chris Marcellino <cmarcellino(at)apple(dot)com> writes:
>> I searched through the archives and I can't find a mention of why
the
>> posix_sema code was written for Darwin.
>
> Because Darwin didn't have anything else at the time.
>
>> If this is in fact the case, I have a trivial patch to
conditionally
>> enable SysV semaphores based on the OS release:
>
> Outta curiosity, can you measure any performance difference?
>
> regards, tom lane
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate
>

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-02-08 02:14:27 Re: TM formating patch
Previous Message Tom Lane 2007-02-08 00:54:05 Re: Configure template change to use SysV Semaphors on darwin