#NEWLINE# def language_create( name , maintenance_db , user = None , host = None , port = None , password = None , runas = None ) : #NEWLINE# #INDENT# "\n    .. versionadded:: 2016.3.0\n\n    Installs a language into a database\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' postgres.language_create plpgsql dbname\n\n    name\n       Language to install\n\n    maintenance_db\n        The database to install the language in\n\n    user\n        database username if different from config or default\n\n    password\n        user password if any password for a specified user\n\n    host\n        Database host if different from config or default\n\n    port\n        Database port if different from config or default\n\n    runas\n        System user all operations should be performed on behalf of\n    " #NEWLINE# if language_exists ( name , maintenance_db ) : #NEWLINE# #INDENT# log . info ( 'Language %s already exists in %s' , name , maintenance_db ) #NEWLINE# return False #NEWLINE# #UNINDENT# query = 'CREATE LANGUAGE {0}' . format ( name ) #NEWLINE# ret = _psql_prepare_and_run ( [ '-c' , query ] , user = user , host = host , port = port , maintenance_db = maintenance_db , password = password , runas = runas ) #NEWLINE# return ( ret [ 'retcode' ] == 0 )