Our production service will occasionally (maybe a handful of times a week) receive the following error:
postgres connection error: connection closed
What is the best way to check the connection via the pool? Is there a better way to handle these errors then just doing a check and trying the get another connection from the pool again?