Retry to get a connection when an OperationalError is raised
requested to merge topic/default/trytond-postgresql-getconn-retry-operational-error into branch/default
If there are no connection available in the pool, psycopg2 tries to create a new connection but it may raise an OperationalError if the server close it.
Closes #13475 (closed)