def check_connection():
conn = psycopg2.connect(db_url)<EOL>conn.close()<EOL>
Test that postgres is running and that we can connect using the
    configured URI.

    Raises a psycopg2.OperationalError on failure.