Re: Problem with locks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Problem with locks
Date
Msg-id 26965.1186939350@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem with locks  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Problem with locks  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> Seems to me this proves nothing much, since it doesn't use the same SysV
>> semaphore API PG does.

> I was trying to copy the semaphore API exactly assuming
> USE_NAMED_POSIX_SEMAPHORES was *not* defined. According to the comments we
> prefer not to use named semaphores if possible.

What you seem to have copied is the posix_sema.c code, which AFAIK is
only used on Darwin.  sysv_sema.c is what to look at ... unless your
benchmark machine is a Mac.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Problem with locks
Next
From: Tom Lane
Date:
Subject: Re: Interesting misbehavior of repalloc()