ClickHouse/docs/en/sql-reference/statements
Azat Khuzhin 01e1c5345a Add separate CLUSTER grant
In case you have different roles for the same user on multiple clusters,
ON CLUSTER query can help to overcome some limitations.

Consider the following example:
- cluster_with_data, dev_user (readonly=2)
- stage_cluster, dev_user (readonly=0)

So when you will execute the following query from stage_cluster, it will
be successfully executed, since ON CLUSTER queries has different system
profile:

    DROP DATABASE default ON CLUSTER cluster_with_data

This is not 100% safe, but at least something.

Note, that right now only ON CLUSTER query it self is supported, but
separate clusters are not (i.e. GRANT CLUSTER some_cluster_name TO
default), since right now grants sticked to database+.

v2: on_cluster_queries_require_cluster_grant
v3: fix test and process flags as bit mask
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 13:57:45 +03:00
..
alter update materialize index notation 2022-05-16 00:28:49 +03:00
create Fixed broken links 2022-04-11 09:55:54 -06:00
select Merge branch 'master' into docs-staging 2022-04-15 07:25:27 -06:00
_category_.yml EOL fixes 2022-04-19 13:50:45 -06:00
attach.md Revised /en folder 2022-04-09 07:34:21 -06:00
check-table.md Revised /en folder 2022-04-09 07:34:21 -06:00
describe-table.md Revised /en folder 2022-04-09 07:34:21 -06:00
detach.md Fixed broken links 2022-04-11 09:55:54 -06:00
drop.md Revised /en folder 2022-04-09 07:34:21 -06:00
exchange.md Revised /en folder 2022-04-09 07:34:21 -06:00
exists.md Revised /en folder 2022-04-09 07:34:21 -06:00
explain.md Add a missing **ESTIMATE** in explain syntax 2022-04-28 00:10:59 +08:00
grant.md Add separate CLUSTER grant 2022-05-16 13:57:45 +03:00
index.md Added reference docs to sidebar 2022-04-10 21:27:48 -06:00
insert-into.md Fixed broken links 2022-04-10 23:01:34 -06:00
kill.md Revised /en folder 2022-04-09 07:34:21 -06:00
misc.md Revised /en folder 2022-04-09 07:34:21 -06:00
optimize.md Revised /en folder 2022-04-09 07:34:21 -06:00
rename.md Revised /en folder 2022-04-09 07:34:21 -06:00
revoke.md Revised /en folder 2022-04-09 07:34:21 -06:00
set-role.md Revised /en folder 2022-04-09 07:34:21 -06:00
set.md Revised /en folder 2022-04-09 07:34:21 -06:00
show.md Revised /en folder 2022-04-09 07:34:21 -06:00
system.md Fixed broken links 2022-04-10 23:01:34 -06:00
truncate.md Revised /en folder 2022-04-09 07:34:21 -06:00
use.md Revised /en folder 2022-04-09 07:34:21 -06:00
watch.md Revised /en folder 2022-04-09 07:34:21 -06:00