

def _get_postgres_version(self):
    if (self._postgres_version is None):
        from django.db.backends.postgresql.version import get_version
        cursor = self.connection.cursor()
        self._postgres_version = get_version(cursor)
    return self._postgres_version

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/backends/postgresql/operations.py DatabaseOperations._get_postgres_version/original