pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Christoph Berg <myon@debian.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Switch to unnamed POSIX semaphores as our preferred sema code?
Date: Mon, 10 Oct 2016 15:17:13 -0400
Message-ID: <10659.1476127033@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=2kc6piMFxMba=YPF6rh_HeRsz-H-PgCrH71dAYFKtQXQ@mail.gmail.com>
References: <8536.1475704230@sss.pgh.pa.us>
	<15690.1475761593@sss.pgh.pa.us>
	<CA+TgmoZ-3UFcD-qBZevXLiw-_S3zm2xHgSy+Oa7-BCM+7g6_Sw@mail.gmail.com>
	<29244.1475959928@sss.pgh.pa.us>
	<20161009091803.fag2mkehtuknd5s6@msg.df7cb.de>
	<5212.1476118649@sss.pgh.pa.us>
	<CAEepm=2kc6piMFxMba=YPF6rh_HeRsz-H-PgCrH71dAYFKtQXQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Tue, Oct 11, 2016 at 5:57 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> (I'm a little suspicious that older variants of FreeBSD might not
>> have working sem_init, like the other *BSD variants, necessitating
>> a run-time test there.  But we'll cross that bridge when we come
>> to it.)

> The sem_init man page from FreeBSD 8.4[1] (EOL August 2015) and earlier said:
>      This implementation does not support shared semaphores, and reports this
>      fact by setting errno to EPERM.
> FreeBSD 9.0 (released January 2012) reimplemented semaphores and
> removed those words from that man page[2].

Yeah, in subsequent googling I found other mentions of this having been
added in FreeBSD 9.0.  But that will be more than 5 years old by the
time PG 10 gets out.

> All current releases[3] support it, though I guess there may be 8.4
> machines out there a year and a bit after EOL.

We don't have anything older than 9.0 in the buildfarm, which I take
to indicate that nobody particularly cares about older versions anymore.
I would just as soon not add a run-time test in configure (it breaks
cross-compiles), so I'd rather wait and see if anyone complains.

			regards, tom lane


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



view thread (11+ messages)

Message-ID: <10659.1476127033@sss.pgh.pa.us>
Permalink:  ../10659.1476127033@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10659.1476127033@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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, myon@debian.org, robertmhaas@gmail.com
  Subject: Re: Switch to unnamed POSIX semaphores as our preferred sema code?
  In-Reply-To: <10659.1476127033@sss.pgh.pa.us>
  References: <8536.1475704230@sss.pgh.pa.us> <15690.1475761593@sss.pgh.pa.us> <CA+TgmoZ-3UFcD-qBZevXLiw-_S3zm2xHgSy+Oa7-BCM+7g6_Sw@mail.gmail.com> <29244.1475959928@sss.pgh.pa.us> <20161009091803.fag2mkehtuknd5s6@msg.df7cb.de> <5212.1476118649@sss.pgh.pa.us> <CAEepm=2kc6piMFxMba=YPF6rh_HeRsz-H-PgCrH71dAYFKtQXQ@mail.gmail.com> <10659.1476127033@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