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

# database_* 세션 설정

> database_* 생성된 그룹의 ClickHouse 세션 설정입니다.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["버전", "기본값", "설명"];
  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
  }}>
        버전 이력
      </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
  }}>유형</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>기본값</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          재시작 없이 변경 가능
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

이 설정들은 [system.settings](/ko/reference/system-tables/settings)에서 확인할 수 있으며 [소스 코드](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp)에서 자동 생성됩니다.

<div id="database">
  ## 데이터베이스
</div>

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.8"},{"label": ""},{"label": "쿼리의 현재 데이터베이스를 지정하는 새로운 설정입니다. HTTP `database` URL 매개변수 및 `X-ClickHouse-Database` 헤더에 대한 특수 처리를 대체합니다."}]}]} />

쿼리의 현재 데이터베이스, 즉 정규화되지 않은 테이블 이름을 해석하는 데이터베이스를 설정합니다. 이는 `USE <database>`와 동일한 효과를 냅니다. `USE` 문과 달리 일반적인 세션 설정이므로, 다른 설정과 마찬가지로 값을 검증하지 않고 허용합니다. 존재하지 않는 데이터베이스는 `SET` 시점이 아니라 설정이 적용되는 시점(쿼리 실행 시)에 보고됩니다. `USE`의 권한 규칙이 아니라 이를 일반화한 클라이언트 제공 기본 데이터베이스의 권한 규칙을 따릅니다. 즉, 현재 데이터베이스를 선택하는 데 `SHOW_DATABASES` 권한은 필요하지 않지만, 해당 데이터베이스 내 테이블에 대한 접근 권한은 일반적인 방식으로 확인됩니다. HTTP 인터페이스의 `database` URL 매개변수와 `X-ClickHouse-Database` 헤더의 대상으로 사용됩니다.

<div id="database_atomic_wait_for_drop_and_detach_synchronously">
  ## database\_atomic\_wait\_for\_drop\_and\_detach\_synchronously
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

모든 `DROP` 및 `DETACH` 쿼리에 `SYNC` 수정자를 적용합니다.

가능한 값:

* 0 — 쿼리가 지연된 후 실행됩니다.
* 1 — 쿼리가 지연 없이 실행됩니다.

<div id="database_datalake_require_metadata_access">
  ## database\_datalake\_require\_metadata\_access
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.1"},{"label": "1"},{"label": "새 설정입니다."}]}]} />

데이터베이스 엔진 DataLakeCatalog에서 테이블 메타데이터를 가져올 권한이 없을 때 오류를 발생시킬지 여부입니다.

<div id="database_shared_drop_table_delay_seconds">
  ## database\_shared\_drop\_table\_delay\_seconds
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "25.11"},{"label": "28800"},{"label": "새 설정입니다."}]}]} />

삭제된 테이블이 Shared 데이터베이스에서 실제로 제거되기까지의 지연 시간(초)입니다. 이 시간 내에는 `UNDROP TABLE` 구문을 사용하여 테이블을 복구할 수 있습니다.
