Create an internal semaphore API that is not tied to SysV semaphores.
Tom Lane <tgl@sss.pgh.pa.us>
Create an internal semaphore API that is not tied to SysV semaphores. As proof of concept, provide an alternate implementation based on POSIX semaphores. Also push the SysV shared-memory implementation into a separate file so that it can be replaced conveniently.