[pgpool-committers: 8816] pgpool: Fix query cache.

Tatsuo Ishii ishii at sraoss.co.jp
Sat Sep 24 17:03:49 JST 2022


Fix query cache.

The commit dc559c07ee5affc7035efa6e0f00185e211079a0 introduced shared
lock by using flock(2).  However it opened lock file in parent process
then the file descriptor was shared by child process. This is
wrong. The lock file needs to be opened by each child process.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3e9b85ef3f6af3274f47dc1a4f877c6d4fbe444d

Modified Files
--------------
src/include/pool.h                       |  3 +++
src/include/query_cache/pool_memqcache.h |  6 -----
src/main/pgpool_main.c                   | 44 +++++++++++++++-----------------
src/query_cache/pool_memqcache.c         | 29 +++++++++++++++++++++
4 files changed, 52 insertions(+), 30 deletions(-)



More information about the pgpool-committers mailing list