Top
Enterprise Postgres 17 SP1 Connection Manager User's Guide

3.3.6 PQcmSocket()

You can get a socket that leads to the conmgr process. It returns a value equal to or more than 0 for a valid socket, or -1 if you are not connected to the conmgr process.

int PQcmSocket(const PGconn *conn);