> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-parallel-read-in-order-multi-part.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 現在のサーバーで実行されたすべてのトランザクションに関する情報が含まれています。
このテーブルは、いつでも安全に truncate または drop できます。

# system.transactions_info_log

## Description

現在のサーバー上で実行されたすべてのトランザクションに関する情報が格納されます。

**Availability**

`system.transactions_info_log` は、サーバー設定に `transactions_info_log` セクションが含まれている場合にのみ作成されます。また、テーブルに行が蓄積されるためには、`allow_experimental_transactions` によってトランザクションを有効化する必要があります。log セクションがない場合、このテーブルへのクエリは `UNKNOWN_TABLE` で失敗します。実験的なトランザクションが有効になっていない場合、設定されたテーブルは空のままになります。

```xml theme={null}
<clickhouse>
    <allow_experimental_transactions>1</allow_experimental_transactions>
    <transactions_info_log>
        <database>system</database>
        <table>transactions_info_log</table>
        <partition_by>toYYYYMM(event_date)</partition_by>
        <flush_interval_milliseconds>7500</flush_interval_milliseconds>
    </transactions_info_log>
</clickhouse>
```

このテーブルは、いつでも安全に TRUNCATE または DROP できます。

## カラム

* `hostname` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — トランザクションが実行されたホスト名。
* `clickhouse_version` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — この行を生成した ClickHouse サーバーのバージョン。
* `system_processor` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — この行を生成した ClickHouse サーバーの CPU アーキテクチャ。
* `type` ([Enum8('Begin' = 1, 'Commit' = 2, 'Rollback' = 3, 'AddPart' = 10, 'LockPart' = 11, 'UnlockPart' = 12)](/ja/reference/data-types/enum)) — トランザクションのタイプ。設定可能な値: Begin, Commit, Rollback, AddPart, LockPart, UnlockPart。
* `event_date` ([Date](/ja/reference/data-types/date)) — エントリの日付。
* `event_time` ([DateTime64(6)](/ja/reference/data-types/datetime64)) — エントリの時刻
* `thread_id` ([UInt64](/ja/reference/data-types/int-uint)) — スレッドの識別子。
* `query_id` ([String](/ja/reference/data-types/string)) — トランザクションのスコープ内で実行されたクエリの ID。
* `tid` ([Tuple(UInt64, UInt64, UUID, Int64)](/ja/reference/data-types/tuple)) — トランザクションの識別子。
* `tid_hash` ([UInt64](/ja/reference/data-types/int-uint)) — 識別子のハッシュ値。
* `csn` ([UInt64](/ja/reference/data-types/int-uint)) — コミットシーケンス番号
* `database` ([String](/ja/reference/data-types/string)) — トランザクションの実行対象となったデータベースの名前。
* `table` ([String](/ja/reference/data-types/string)) — トランザクションの実行対象となったテーブルの名前。
* `uuid` ([UUID](/ja/reference/data-types/uuid)) — トランザクションの実行対象となったテーブルの UUID。
* `part` ([String](/ja/reference/data-types/string)) — トランザクションに含まれる part の名前。
