git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d6c08e2) | patch
Use a long lived WaitEventSet for WaitLatch().
2020年7月30日 05:08:11 +0000 (17:08 +1200)
2020年7月30日 05:40:00 +0000 (17:40 +1200)
commit 3347c982bab0dd56d5b6cb784521233ba2bbac27
Use a long lived WaitEventSet for WaitLatch().

Create LatchWaitSet at backend startup time, and use it to implement
WaitLatch(). This avoids repeated epoll/kqueue setup and teardown
system calls.

Reorder SubPostmasterMain() slightly so that we restore the postmaster
pipe and Windows signal emulation before we reach InitPostmasterChild(),
to make this work in EXEC_BACKEND builds.

Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/storage/ipc/latch.c diff | blob | blame | history
src/backend/utils/init/miscinit.c diff | blob | blame | history
src/include/storage/latch.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /