Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change history path by changing env #6840

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

filimonov
Copy link
Contributor

@filimonov filimonov commented Sep 5, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • New Feature

Short description (up to few sentences):
Possibility to change the location of clickhouse history file using CLICKHOUSE_HISTORY_FILE env.

Detailed description (optional):
Sometimes you may need to use several history files (for different clusters),
Or use history file stored in some network location.
Or just disable writing history by using /dev/null instead of history file.

Now it's possible using CLICKHOUSE_HISTORY_FILE env variable (you can put it to your ~/.bashrc or set for particular run).

Before that the only possibility to change that was editing /etc/clickhouse-client/config.xml
implements #6622

@filimonov
Copy link
Contributor Author

I've tested that manually, and it looks ok.

@alexey-milovidov
Copy link
Member

Ok.

BTW, we also support ./clickhouse-client.xml and ~/.clickhouse-client/config.xml.

@alesapin alesapin merged commit 571ed1b into ClickHouse:master Sep 6, 2019
@KochetovNicolai KochetovNicolai added the pr-feature Pull request with new product feature label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature Pull request with new product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants