[pgpool-general: 9271] Re: Segmentation fault during shutdown
Tatsuo Ishii
ishii at postgresql.org
Mon Nov 11 19:17:35 JST 2024
> That was exactly what I was afraid of. It's probably not going to happen
> often, but for these cases, it's better to be on the safe side.
Agreed.
>>> What if pool_init_cp would set a flag to indicates a successful
>> >> init. close_all_backend_connections could then check this flag and only
>> >> close the connections if this flag is set. I don't know if is actually
>> >> possible, because I'm a Java developer and things work quite different
>> >> there. But IMHO, it makes sense to at least try to close the connections
>> >> from the side of pgpool if this is possible.
>> >
>> > Sounds like a good idea. I will revert the previous commit and try to
>> > implement another patch for this.
>>
>> v2 patch attached.
>>
>
> Thanks, I've added the patch to our build system. As this crash is very
> rare, all I can do is verify the correct working of pgpool with this patch
> (and I see no reason why it would not work). Even if the issue is not
> fixed, it may take months to resurface.
Sure no problem. Thank you again for the reporting and discussion!
Best reagards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
More information about the pgpool-general
mailing list