Re: Problem with locks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "PostgreSQL-development Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with locks
Date: 2007-08-12 17:22:30
Message-ID: 26965.1186939350@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-08-12 17:54:04 Re: Interesting misbehavior of repalloc()
Previous Message Gregory Stark 2007-08-12 16:50:36 Re: Problem with locks