def language_create(name,
                    maintenance_db,
                    user=None,
                    host=None,
                    port=None,
                    password=None,
                    runas=None):

    if language_exists(name, maintenance_db):
        log.info('Language %s already exists in %s', name, maintenance_db)
        return False

    query = 'CREATE LANGUAGE {0}'.format(name)

    ret = _psql_prepare_and_run(['-c', query],
                                user=user,
                                host=host,
                                port=port,
                                maintenance_db=maintenance_db,
                                password=password,
                                runas=runas)

    return ret['retcode'] == 0
.. versionadded:: 2016.3.0
dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/language_create