def get_version(cursor):
    cursor.execute("SELECT version()")
    version = cursor.fetchone()[0]
    major, minor = VERSION_RE.search(version).groups()
    return int(major), int(minor)
Returns a tuple representing the major and minor version number of the
dataset/ETHPy150Open dcramer/django-compositepks/django/db/backends/postgresql/version.py/get_version