Add kqueue(2) support to the WaitEventSet API.

Thomas Munro <tmunro@postgresql.org>

Commit: 815c2f0972c8386aba7c606f1ee6690d13b04db2
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-02-05T04:35:57Z
Releases: 13.0
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

Files

PathChange+/−
configure modified +2 −2
configure.in modified +2 −0
src/backend/storage/ipc/latch.c modified +299 −1
src/include/pg_config.h.in modified +6 −0
src/tools/msvc/Solution.pm modified +2 −0

Discussion

  • kqueue 82 messages · 2016-03-29 → 2020-02-05