Re: [HACKERS] Using different semaphore for locking

2010-12-05 Thread Tom Lane
flyusa2010 fly writes: > 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. > l

[HACKERS] Using different semaphore for locking

2010-12-05 Thread flyusa2010 fly
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