libpq: Add pqReleaseConnHosts function

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 53747f722228d2cd4d7054c4d509b27dc89306ae
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2024-02-04T15:19:20Z
Releases: 17.0
libpq: Add pqReleaseConnHosts function

In a follow up commit we'll need to free this connhost field in a
function defined in fe-cancel.c, so here we extract the logic to a
dedicated extern function.

Author: Jelte Fennema-Nio <jelte.fennema@microsoft.com>
Discussion: https://postgr.es/m/AM5PR83MB0178D3B31CA1B6EC4A8ECC42F7529@AM5PR83MB0178.EURPRD83.prod.outlook.com

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +26 −13
src/interfaces/libpq/libpq-int.h modified +1 −0

Discussion