Better answers here:
Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?
It seems 10.4 changed to IDLE connections instead. But pooling is not a supported scenario since it could in some scenarios create unexpected results - worse case data corruption.
Still, read-only connections could be a good candidate for pooling, even though it's not supported.