How can I determine which version of libpq that my distro of QGIS is running? When I open the 'about' section, it says 'unknown'. I started looking through some source and doc, and seems like the PostgreSQL Client comes via GDAL. Ultimately, I am trying to get QGIS to connect to a PostgreSQL server that requires Server Name Indication, which I think came in PostgreSQL 14?
Next step I will likely try compiling from source so that I can perhaps specify the version of libpq used in GDAL.
I'm running QGIS in MacOS and got the .dmg here https://www.qgis.org/en/site/forusers/download.html

