def version(user=None, host=None, port=None, maintenance_db=None,
            password=None, runas=None):
    query = 'SELECT setting FROM pg_catalog.pg_settings ' \
            'WHERE name = \'server_version\''
    cmd = _psql_cmd('-c', query,
                    '-t',
                    host=host,
                    user=user,
                    port=port,
                    maintenance_db=maintenance_db,
                    password=password)
    ret = _run_psql(
        cmd, runas=runas, password=password, host=host, port=port, user=user)

    for line in salt.utils.itertools.split(ret['stdout'], '\n'):
        # Just return the first line
        return line
**SUMMARY**
dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/version--crossover with--dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/Tracking/TrackSet.py/TrackSet.drawBB