> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# configurações de sessão url_*

> Configurações de sessão do ClickHouse no grupo url_* gerado.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["Versão", "Valor padrão", "Comentário"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        Histórico de versões
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>Tipo</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>Padrão</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          Pode ser alterado sem reiniciar
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

Estas configurações estão disponíveis em [system.settings](/pt-BR/reference/system-tables/settings) e são geradas automaticamente a partir do [código-fonte](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

<div id="url_base">
  ## url\_base
</div>

A URL base usada para resolver URLs relativas na função de tabela [url](/pt-BR/reference/functions/table-functions/url) e no motor de tabela [URL](/pt-BR/reference/engines/table-engines/special/url).

Quando definida, as URLs relativas são resolvidas da seguinte forma:

* URL relativa ao caminho (por exemplo, `data.csv`): combinada com o caminho da URL base de acordo com a RFC 3986. Tudo após a última `/` no caminho base é substituído pela URL relativa, então a barra final faz diferença: `https://example.com/dir/` + `data.csv` = `https://example.com/dir/data.csv`, mas `https://example.com/dir` + `data.csv` = `https://example.com/data.csv`. Se a base não tiver caminho (por exemplo, `https://example.com`), uma `/` é inserida: `https://example.com/data.csv`. Segmentos de ponto (`./` e `../`) na URL relativa são normalizados: `https://example.com/dir/` + `../a.csv` = `https://example.com/a.csv`.
* URL relativa ao host (por exemplo, `/test/data.csv`): resolvida com base no esquema e no host da URL base.
* URL relativa ao esquema (por exemplo, `//other.com/test/data.csv`): resolvida usando o esquema da URL base.
* Referência somente de consulta (por exemplo, `?x=1`): anexada ao caminho da URL base (substituindo qualquer string de consulta/fragmento existente).
* Referência somente de fragmento (por exemplo, `#frag`): anexada à URL base, preservando qualquer string de consulta (substituindo qualquer fragmento existente).
* Referência vazia: retorna a URL base sem fragmento.

Por exemplo, se `url_base` for `https://example.com/def/`, então:

* `data.csv` é resolvido como `https://example.com/def/data.csv`
* `/test/data.csv` é resolvido como `https://example.com/test/data.csv`
* `//other.com/test/data.csv` é resolvido como `https://other.com/test/data.csv`

<div id="url_wildcard_max_directories_to_read">
  ## url\_wildcard\_max\_directories\_to\_read
</div>

<SettingsInfoBlock type="UInt64" default_value="100000" />

Número máximo de diretórios que podem ser percorridos ao expandir curingas de URL a partir de páginas de índice.
