For pooled connections, the config() method raises a PoolError exception. Configuration for pooled connections should be done using the pool object.
config()
PoolError