code: def is_installed_extension(name,
                             user=None,
                             host=None,
                             port=None,
                             maintenance_db=None,
                             password=None,
                             runas=None):
      '''
      Test if a specific extension is installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.is_installed_extension
  
      '''
      installed_ext = get_installed_extension(
          name,
          user=user,
          host=host,
          port=port,
          maintenance_db=maintenance_db,
          password=password,
          runas=runas)
      return bool(installed_extf is_installed_extension(name,
                             user=None,
                             host=None,
                             port=None,
                             maintenance_db=None,
                             password=None,
                             runas=None):
      '''
      Test if a specific extension is installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.is_installed_extension
  
      '''
      installed_ext = get_installed_extension(
          name,
          user=user,
          host=host,
          port=port,
          maintenance_db=maintenance_db,
          password=password,
          runas=runas)
      return bool(installed_ext)
docs: Test if a specific extension is installed
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.is_installed_extension