[pgpool-committers: 10157] Re: pgpool: Fix pgpool crash when pgpool child process exits.

Tatsuo Ishii ishii at postgresql.org
Wed Sep 18 11:43:31 JST 2024


Sorry, I forgot add the link for the discussion to the commit message.

[pgpool-general: 9203] Segmentation fault during shutdown
https://www.pgpool.net/pipermail/pgpool-general/2024-September/001880.html

Best reagards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
 
From: Tatsuo Ishii <ishii at postgresql.org>
Subject: [pgpool-committers: 10156] pgpool: Fix pgpool crash when pgpool child process exits.
Date: Wed, 18 Sep 2024 02:35:17 +0000
Message-ID: <E1sqkXF-00HMYO-7G at gothos.postgresql.org>

> Fix pgpool crash when pgpool child process exits.
> 
> When a pgpool child process exits, close_all_backend_connections() is
> called, which is responsible for closing all connections to backend in
> the connection pool. It used mistakenly MAIN_CONNECTION macro, which
> is fine for current active connections but is not good for pooled
> connections because a main node could be different at the time when
> the connection pool was created. Fix is using in_use_backend()
> instead.
> 
> Reported-by: Emond Papegaaij
> Backpatch-through: v4.2
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=4ac2f8801508922ef75c5f476b8edae988f635c1
> 
> Modified Files
> --------------
> src/protocol/pool_connection_pool.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
> 


More information about the pgpool-committers mailing list