ClickHouse/docs/en
Azat Khuzhin 103eb17107 Force table creation on SYSTEM FLUSH LOGS (v2)
After this patch SYSTEM FLUSH LOGS will force system.*_log table
creatoins (only for enabled tables of course).

This will avoid such hacks like:

   set log_queries=1;
   select 1;
   system flush logs;

This is the second version of the patch, since first has a deadlock [1]
(reported by @alesapin). This version does not use separate lock and do
not issue CREATE TABLE from the query execution thread, instead it
activate flushing thread to do so, hence this should be the same as if
the table will be created during flush.

  [1]: https://gist.github.com/alesapin/d915d1deaa27d49aa31223daded02be2

Fixes: #11563
Cc: @alesapin
Cc: @nikitamikhaylov
2020-06-11 23:12:23 +03:00
..
commercial Add a description of Altinity services (#10812) 2020-05-11 13:56:47 +03:00
development Fixed wrong links in 'developer-instruction.md'. 2020-06-04 15:05:55 -07:00
engines Update file.md 2020-06-10 23:22:56 +03:00
faq Update index.md 2020-05-22 08:51:46 +03:00
getting-started perl -pi -e 's/repo\.yandex\.ru\/clickhouse/repo.clickhouse.tech/g' {} 2020-06-10 21:54:55 +03:00
guides [docs] replace underscores with hyphens (#10606) 2020-04-30 21:19:18 +03:00
images [ImgBot] Optimize images 2020-05-11 03:31:47 +00:00
interfaces Update odbc.md 2020-06-10 18:16:29 +03:00
introduction Update adopters.md 2020-06-02 10:15:50 +03:00
operations Merge pull request #11588 from ClickHouse/aku/async-log 2020-06-11 16:10:35 +03:00
sql-reference Force table creation on SYSTEM FLUSH LOGS (v2) 2020-06-11 23:12:23 +03:00
whats-new Update roadmap.md 2020-05-19 16:22:29 +03:00
index.md [docs] replace underscores with hyphens (#10606) 2020-04-30 21:19:18 +03:00