def get_postgresql_version(connection):
    from django.db.backends.postgresql_psycopg2.version import get_version
    return get_version(connection)
Returns the version number of the PostgreSQL connection.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/get_postgresql_version