docs: def tablespace_exists(name, user=None, host=None, port=None, maintenance_db=None,
                password=None, runas=None):
      '''
      Checks if a tablespace exists on the Postgres server.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.tablespace_exists 'dbname'
  
      .. versionadded:: 2015.8.0
      '''
  
      tablespaces = tablespace_list(user=user, host=host, port=port,
                          maintenance_db=maintenance_db,
                          password=password, runas=runas)
      return name in tablespaces