Using different semaphore for locking

From: flyusa2010 fly <flyusa2010(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Using different semaphore for locking
Date: 2010-12-05 06:37:49
Message-ID: AANLkTinq+uuvDitaHoxf_4XY7b4nSCS1_+S9Z1+Y+oKW@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I found that postgres uses different semaphore system call on some different
operating systems.
For example, I found that on linux, System V semaphore (semop etc.) is used
to implement locking, while on Darwin, POSIX semaphore (sem_wait, sem_post
etc.) is used.
linux and Darwin support both System V and POSIX semaphores, i'm wondering
why postgres implement locking using different types of semaphore system
call. Is there any performance or semantic issue on different OSes?

Thnaks!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc Balmer 2010-12-05 09:22:49 Suggesting a libpq addition
Previous Message flyusa2010 fly 2010-12-05 06:33:32 what are clog and xlog?