> ## 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.

# max_parser_* session settings

> ClickHouse session settings in the max_parser_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## max\_parser\_backtracks

Type

UInt64

Default

1000000

Maximum parser backtracking (how many times it tries different alternatives in the recursive descend parsing process).

## max\_parser\_depth

Type

UInt64

Default

1000

Limits maximum recursion depth in the recursive descent parser. Allows controlling the stack size.

Possible values:

* Positive integer.
* 0 — Recursion depth is unlimited.
