pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use unnamed POSIX semaphores on Cygwin.
Date: Thu, 05 Jan 2023 21:39:08 +0000
Message-ID: <E1pDXx6-002Dz4-Bj@gemulon.postgresql.org> (raw)

Use unnamed POSIX semaphores on Cygwin.

Testing on CI showed that Cygwin's semctl() can fail with EAGAIN
(possibly due to resource limits in cygserver that could be tuned, not
examined).  Switch to so-called POSIX semaphores instead, which don't
seem to fail in that way (possibly due to a more direct implementation
using Windows semaphore primitives instead of talking to cygserver,
based on a cursory glance at the source).

Other known problems still prevent PostgreSQL from running on Cygwin
without random crashes, but this rarer problem was noticed while
testing.

Discussion: https://postgr.es/m/CA%2BhUKG%2BQ6DU4Ov9LrvUyDcF3oHS4KMRVSKmVGaeePq-kOyG9gA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f2857af485a00ab5dbfa2c83af9d83afe4378239

Modified Files
--------------
meson.build         | 1 +
src/template/cygwin | 5 +++++
2 files changed, 6 insertions(+)



Message-ID: <E1pDXx6-002Dz4-Bj@gemulon.postgresql.org>
Permalink:  ../E1pDXx6-002Dz4-Bj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pDXx6-002Dz4-Bj@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Use unnamed POSIX semaphores on Cygwin.
  In-Reply-To: <E1pDXx6-002Dz4-Bj@gemulon.postgresql.org>
  References: <E1pDXx6-002Dz4-Bj@gemulon.postgresql.org>

* 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