I did a test, shut down the server and called the psycopg2.pool.SimpleConnectionPool
method, the method is waiting for a response for a very long time, about a minute, only then it raises the OperationalError
exception.
This is normal? Can you reduce the wait time?
>>>import psycopg2, psycopg2.pool
>>> a=psycopg2.pool.SimpleConnectionPool(1, 2, host = 'ip-do-server', user = 'postgres', password = 'postgres', database = 'nomebanco', port = 5432)