pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Sobolev <sobomax@freebsd.org>
Cc: pgsql-bugs@postgresql.org, Konstantin Belousov <kib@freebsd.org>
Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD
Date: Tue, 21 Jun 2016 16:36:02 -0400
Message-ID: <18145.1466541362@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH7qZfuEgJ4RfRy2NXEn1CMy8QRDjbaqmrne6f3NYgekjRLBzg@mail.gmail.com>
References: <20160621193412.5792.65085@wrigleys.postgresql.org>
	<16860.1466539165@sss.pgh.pa.us>
	<CAH7qZfuEgJ4RfRy2NXEn1CMy8QRDjbaqmrne6f3NYgekjRLBzg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Maxim Sobolev <sobomax@freebsd.org> writes:
> Tom, thanks for looking at it so promptly. I am adding kib@ into the
> discussion. Perhaps he would comment on the SYSV vs. POSIX in FreeBSD and
> named vs. unnamed.

BTW, I trawled our archives and found this thread concerning the switch
from POSIX to SYSV on OS X:

https://www.postgresql.org/message-id/flat/3830CBEB-F8CE-4EBC-BE16-A415E78A4CBC%40apple.com

I'm not sure what you were using to decide that POSIX semaphores were
okay, but the points in that thread about pgbench not being a very
good test case remain relevant.

> As far as I can tell, the sem_init(3) interface is present in the FreeBSD
> 10.3, so maybe we can use those instead?

If that seems like a competitive alternative for you, it'd be nice to have
a platform where we use unnamed POSIX semaphores by default.  I'm a little
worried about whether that code has suffered bit-rot, since it's been
sitting there basically unused for so long.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (14+ messages)  latest in thread

Message-ID: <18145.1466541362@sss.pgh.pa.us>
Permalink:  ../18145.1466541362@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18145.1466541362@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sobomax@freebsd.org, kib@freebsd.org
  Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD
  In-Reply-To: <18145.1466541362@sss.pgh.pa.us>
  References: <20160621193412.5792.65085@wrigleys.postgresql.org> <16860.1466539165@sss.pgh.pa.us> <CAH7qZfuEgJ4RfRy2NXEn1CMy8QRDjbaqmrne6f3NYgekjRLBzg@mail.gmail.com> <18145.1466541362@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox