def get_version(cursor):
    cursor.execute("SELECT version()")
    version = cursor.fetchone()[0]
    major, minor = VERSION_RE.search(version).groups()
    return int(major), int(minor)
L{ConnectionPool._close} logs exceptions.
dataset/ETHPy150Open dcramer/django-compositepks/django/db/backends/postgresql/version.py/get_version--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_adbapi.py/ConnectionPoolTests.test_closeLogError