pgsql: Add kqueue(2) support to the WaitEventSet API.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add kqueue(2) support to the WaitEventSet API.
Date: 2020-02-05 04:59:10
Message-ID: E1izCmM-0005pV-Co@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add kqueue(2) support to the WaitEventSet API.

Use kevent(2) to wait for events on the BSD family of operating
systems and macOS. This is similar to the epoll(2) support added
for Linux by commit 98a64d0bd.

Author: Thomas Munro
Reviewed-by: Andres Freund, Marko Tiikkaja, Tom Lane
Tested-by: Mateusz Guzik, Matteo Beccati, Keith Fiske, Heikki Linnakangas, Michael Paquier, Peter Eisentraut, Rui DeSousa, Tom Lane, Mark Wong
Discussion: https://postgr.es/m/CAEepm%3D37oF84-iXDTQ9MrGjENwVGds%2B5zTr38ca73kWR7ez_tA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/815c2f0972c8386aba7c606f1ee6690d13b04db2

Modified Files
--------------
configure | 4 +-
configure.in | 2 +
src/backend/storage/ipc/latch.c | 300 +++++++++++++++++++++++++++++++++++++++-
src/include/pg_config.h.in | 6 +
src/tools/msvc/Solution.pm | 2 +
5 files changed, 311 insertions(+), 3 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2020-02-05 05:06:39 pgsql: Add note about how each partition's default value is treated, in
Previous Message Peter Geoghegan 2020-02-05 01:46:05 Re: pgsql: Handle lack of DSM slots in parallel btree build.

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2020-02-05 04:59:50 Re: [HACKERS] kqueue
Previous Message Masahiko Sawada 2020-02-05 04:52:05 Re: base backup client as auxiliary backend process