> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How do ClickHouse version numbers work?

> What the four numbers of a ClickHouse version (year, month, patch, build) mean, how stable and LTS releases differ, which versions are supported, and what the revision is.

A ClickHouse version has four numbers, `YY.M.patch.build`, and the first two are a date. The release tag `v26.8.2.7-lts` belongs to version `26.8`, which was released in August 2026, and is patch release number 2 of that version. The suffix of the tag is the release type.

## The parts of a version

```text theme={null}
v26.8.2.7-lts
 │  │ │ │ └── type: stable or lts
 │  │ │ └──── build: number of commits since the previous release of this version
 │  │ └────── patch: patch release within the version, starting at 1
 │  └──────── M: month of the release, 1 to 12, without a leading zero
 └─────────── YY: last two digits of the year of the release
```

* `YY.M` identifies a version, for example `26.8`. A new version is released about once a month and is the only place where new features appear. It can also contain backward incompatible changes, which are listed at the top of its entry in the [changelog](https://clickhouse.com/docs/resources/changelogs/oss/2026.md).
* `patch` increases with every patch release of that version. Patch releases contain bug fixes and security fixes that were backported from the development branch, and do not introduce breaking changes. They have no fixed schedule: a patch release is published when fixes have been backported to the version.
* `build` counts the commits between two releases, so it starts again with every patch release. The first release of a version has a large build number because it counts the whole development cycle (`v26.8.1.2041-lts`); later patch releases have small ones (`v26.8.2.7-lts`). It carries no meaning of its own: to order two versions, compare `YY`, `M` and `patch`.

The [upgrade guide](https://clickhouse.com/docs/guides/oss/update.md) calls an upgrade within the same `YY.M` a minor version upgrade; this article calls it a patch release.

## Stable and LTS releases

There are two release types:

* `stable`: the regular monthly versions, for example `v26.11.1.2942-stable`.
* `lts` (long-term support): the versions released in March and August, that is `YY.3` and `YY.8`, for example `v26.8.2.7-lts`.

An LTS version is the regular monthly version of March or August. What differs is how long a version receives patch releases:

* the three most recent versions receive patch releases, which gives a stable version about three months of support;
* the two most recent LTS versions receive patch releases as well, each for at least 12 months.

The current list of supported versions is in [`SECURITY.md`](https://github.com/ClickHouse/ClickHouse/blob/master/SECURITY.md) in the ClickHouse repository. A version that is no longer on that list gets no fixes, including security fixes. For advice on choosing between the two kinds, see [Which ClickHouse version to use in production?](https://clickhouse.com/docs/resources/support-center/knowledge-base/setup-installation/production.md).

ClickHouse Cloud services are upgraded for you; the schedule is described in [Upgrades](https://clickhouse.com/docs/products/cloud/features/admin-features/upgrades.md).

## Find the version of your server

```sql theme={null}
SELECT version();
```

```text theme={null}
   ┌─version()────┐
1. │ 26.12.1.1315 │
   └──────────────┘
```

The full tag, including the release type, is in [`system.build_options`](https://clickhouse.com/docs/reference/system-tables/build_options):

```sql theme={null}
SELECT
    name,
    value
FROM system.build_options
WHERE name IN ('VERSION_DESCRIBE', 'GIT_HASH')
ORDER BY name;
```

```text theme={null}
   ┌─name─────────────┬─value────────────────────────────────────┐
1. │ GIT_HASH         │ 87018c8b9f5587c2176975180c2b63e09d57ee33 │
2. │ VERSION_DESCRIBE │ v26.12.1.1315-testing                    │
   └──────────────────┴──────────────────────────────────────────┘
```

This output comes from a development build, which has the type `testing` instead of `stable` or `lts`. `GIT_HASH` is the commit that the binary was built from.

## Version and revision are different numbers

The server also has a revision:

```sql theme={null}
SELECT
    version(),
    revision();
```

```text theme={null}
   ┌─version()────┬─revision()─┐
1. │ 26.12.1.1315 │      54517 │
   └──────────────┴────────────┘
```

The revision is a separate internal counter that is increased whenever the version number is changed. It is not part of the version string and has no relation to the build number. You meet it as the `revision` column of `system.query_log` and other log tables, where it records which binary wrote the row. To tell users or support which release you run, use `version()`.
