This is a follow up commit for
0564864e "Fix assorted causes of
segmentation fault.". It lacked the fix while verify_backend_node calls
get_server_version, i.e. checking availability of slots.
Patch provided by: Emond Papegaaij
Backpatch-through: v4.4
Discussion:
[pgpool-general: 9072] Re: Segmentation after switchover
https://www.pgpool.net/pipermail/pgpool-general/2024-April/009133.html
if (!VALID_BACKEND(i))
continue;
+ if (!slots[i])
+ continue;
+
if (get_server_version(slots, i) >= 90600)
{
check_connectivity = true;