Commit Graph

15 Commits

Author SHA1 Message Date
Kevin Michel
045d4f2d32
Don't replicate DROP/DETACH/DROP DETACHED on Replicated database 2021-09-27 10:10:46 +02:00
Kevin Michel
008c3c812b
Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
`ALTER TABLE ... FETCH` and `ALTER TABLE ... ATTACH` queries were
disabled in the Replicated database engine, because it could cause
accidental duplication of data.

This enables these queries but without replicating them.

In the case of `FETCH`, the part will only be fetched on the server
where the query is issued.

Similarly, in the case of `ATTACH`, the attached part only needs to
be available on the server where the query is issued.

If the table itself is using one of the Replicated MergeTree engines,
the attached data is then replicated by the table engine itself,
without intervention of the database engine.

This change is meant to help with live backup/restore when using the
Replicated database engine, using FREEZE for backup and ATTACH for
restore.
2021-09-21 17:45:23 +02:00
adevyatova
8acaa3540b Fixed the header 2021-08-15 17:04:17 +03:00
Alexey Milovidov
df3be36758 Remove trailing whitespaces from docs 2021-07-29 18:27:50 +03:00
Alexey Milovidov
d87d833691 Remove trailing whitespaces from docs 2021-07-29 18:20:55 +03:00
adevyatova
54c0b88b26 Minor fixed 2021-07-14 13:02:30 +00:00
adevyatova
bc57df6fc1 Add usage-example 2021-07-13 21:43:24 +00:00
adevyatova
239787f747 Update ru docs 2021-07-13 19:52:35 +00:00
adevyatova
b0d3141b15 Updated desc 2021-07-04 18:55:11 +00:00
Anna
bb4d938b91
Update replicated.md 2021-06-10 13:51:58 +03:00
Anna
2dd5f03623
Update replicated.md 2021-06-10 13:49:35 +03:00
Anna
9cb4a8f3cb
Update docs/en/engines/database-engines/replicated.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-06-10 13:42:01 +03:00
Anna
2091bf9656
Update docs/en/engines/database-engines/replicated.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-06-10 13:41:46 +03:00
adevyatova
a51b9d82a5 update 2021-06-05 08:10:37 +00:00
adevyatova
e3ead7e676 Add en docs 2021-06-05 06:46:30 +00:00