[pgpool-committers: 2818] pgpool: Revert "Change implementation of serialize_accept to flock()."

Tatsuo Ishii ishii at postgresql.org
Sun Nov 15 11:07:54 JST 2015

Revert "Change implementation of serialize_accept to flock()."

This reverts commit cdf459f75d234426290e8ed0affc7b1bdc81839e.

The flock() implementation works great. But the performance is not so
great. I guess this is because semaphore implementation wakes up one
waiter when the lock holder releases the lock, while flock()
implementation wakes up all process waiting for the lock.



Modified Files
src/include/pool.h   |    3 ++-
src/protocol/child.c |   58 ++------------------------------------------------
2 files changed, 4 insertions(+), 57 deletions(-)

More information about the pgpool-committers mailing list