'Return the PostGIS version as a tuple (version string, major,
minor, subminor).'

def postgis_version_tuple(self):

    version = self.postgis_lib_version()
    return ((version,) + get_version_tuple(version))
