Is any C/C++ library available for postgres connection pooling? I have looked at pgpool which is more like a middleware. I am looking for a library which can be coded into my application.
There isn't a good in-app connection pooling library. Nearly the entire community uses external proxies, notably pgbouncer
due to its extra operational benefits. In the same breath, SOCI has a connection pool, but it isn't used nearly as widely as pgbouncer
.