diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-07-30 17:08:11 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-07-30 17:40:00 +1200 |
commit | 3347c982bab0dd56d5b6cb784521233ba2bbac27 (patch) | |
tree | 8ddbf152439cb43c4a0e0b8ca72d62cd126931be /src/backend/access/gist/gistbuild.c | |
parent | d6c08e29e7bc8bc3bf49764192c4a9c71fc0b097 (diff) | |
download | postgresql-3347c982bab0dd56d5b6cb784521233ba2bbac27.tar.gz postgresql-3347c982bab0dd56d5b6cb784521233ba2bbac27.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions