mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Included "ON CLUSTER cluster_name" syntax for RELOAD DICTIONARIES command
Included "ON CLUSTER cluster_name" syntax for RELOAD DICTIONARY and RELOAD DICTIONARIES commands to ensure execution on all replicas. Also to conform with the rest of the document.
This commit is contained in:
parent
0a3ca7e97c
commit
6a3f49ada4
@ -18,6 +18,12 @@ Reloads all dictionaries that have been successfully loaded before.
|
||||
By default, dictionaries are loaded lazily (see [dictionaries_lazy_load](../../operations/server-configuration-parameters/settings.md#server_configuration_parameters-dictionaries_lazy_load)), so instead of being loaded automatically at startup, they are initialized on first access through dictGet function or SELECT from tables with ENGINE = Dictionary. The `SYSTEM RELOAD DICTIONARIES` query reloads such dictionaries (LOADED).
|
||||
Always returns `Ok.` regardless of the result of the dictionary update.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
SYSTEM RELOAD DICTIONARIES [ON CLUSTER cluster_name]
|
||||
```
|
||||
|
||||
## RELOAD DICTIONARY
|
||||
|
||||
Completely reloads a dictionary `dictionary_name`, regardless of the state of the dictionary (LOADED / NOT_LOADED / FAILED).
|
||||
@ -25,6 +31,8 @@ Always returns `Ok.` regardless of the result of updating the dictionary.
|
||||
The status of the dictionary can be checked by querying the `system.dictionaries` table.
|
||||
|
||||
``` sql
|
||||
SYSTEM RELOAD DICTIONARY [ON CLUSTER cluster_name] dictionary_name
|
||||
|
||||
SELECT name, status FROM system.dictionaries;
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user