Alexander Tokmakov
67c63a72c7
Merge branch 'master' into split_databases_from_context
2020-03-04 19:24:05 +03:00
Alexander Tokmakov
273333b437
fixes
2020-03-04 19:22:33 +03:00
Alexey Milovidov
dc086b20a9
Fixed wrong code around Memory Profiler
2020-03-03 03:24:44 +03:00
Alexander Tokmakov
fa27ecf353
do not allow custom database for system tables
2020-03-02 20:25:36 +03:00
Alexander Tokmakov
a4d12b31a1
Merge branch 'master' into split_databases_from_context
2020-03-02 17:57:54 +03:00
Vitaly Baranov
5b4b40f86f
Merge pull request #9447 from vitlibar/shard-clamps-settings-to-constraints
...
Shard now clamps the settings from the initiator.
2020-03-01 20:33:52 +03:00
Vitaly Baranov
fc0376a170
Shard now clamps the settings got from the initiator to the shard's constaints instead of throwing an exception.
2020-03-01 02:18:49 +03:00
Vitaly Baranov
39d9c315d4
Simplify the message about authentication: now the same message is used in all cases of failed authentication.
2020-03-01 00:27:15 +03:00
Vitaly Baranov
455fad5919
Add attach mode to access-controlling SQL.
2020-02-28 16:34:18 +03:00
Alexey Milovidov
766ae8261a
Added some missing ErrorCodes
2020-02-25 21:02:41 +03:00
Alexey Milovidov
3602126a1e
Remove unused ErrorCodes
2020-02-25 17:35:37 +03:00
Alexander Tokmakov
8548089e00
Merge branch 'master' into split_databases_from_context
2020-02-25 15:47:19 +03:00
Vitaly Baranov
c1e870d493
Merge pull request #9182 from vitlibar/RBAC-5.2
...
RBAC-5.2
2020-02-22 03:55:17 +03:00
Alexander Tokmakov
29a993a66f
remove another method from Context
2020-02-21 20:57:18 +03:00
Vitaly Baranov
ae18d443c8
Introduce roles.
2020-02-21 06:03:03 +03:00
Vitaly Baranov
4f85c148b5
Move event handling away from Context.
2020-02-21 03:27:23 +03:00
Vitaly Baranov
5849dd2236
Slightly better solution for checking row policy for distributed tables,
...
now it checks both current user's and initial user's filters.
2020-02-21 00:57:42 +03:00
Vitaly Baranov
244c9d5325
Add class GenericRoleSet to represent a set of IDs of users and roles.
2020-02-21 00:57:42 +03:00
Vitaly Baranov
ed2061db8a
Better pointers: std::shared_ptr<const QuotaContext> instead of std::shared_ptr<QuotaContext>, boost::atomic_shared_ptr instead of std::atomic_load/store.
2020-02-21 00:57:42 +03:00
Alexander Tokmakov
d710bd1812
better get... methods
2020-02-17 16:52:59 +03:00
Alexander Tokmakov
c479bbe9f9
make Context::getLock() private
2020-02-14 00:00:03 +03:00
Alexander Tokmakov
1d6afe9f39
Merge branch 'master' into split_databases_from_context
2020-02-12 21:18:32 +03:00
Alexander Tokmakov
b6039f8c50
remove tryGetExternalTable
2020-02-12 21:14:12 +03:00
Alexander Tokmakov
2e6796e7d7
move ViewDependencies to DatabaseCatalog
2020-02-12 19:54:26 +03:00
Ivan
bef233f450
Add simple memory profiler ( #8765 )
...
* Add new trace type to system.trace_log table
* [WIP]
* Add settings for soft limit raising.
* Remove unused diff
* Remove unused diff
* Some renames
* Fix client hanging on quit
* Remove obsolete pointer for trace collector in context.
* Use memory tracker on query level.
* Fix TSan tests
* Try to simplify TraceCollector initialization.
It allows to workaround first call inside signal handler
* Initialize TraceCollector before setting signal handlers
* Attempt to fix
* Fix Int64 → UInt64 for |size|
* Explicitly reset global TraceCollector instance.
2020-02-12 15:37:40 +03:00
Alexander Tokmakov
3c5d6cf6f1
fix
2020-02-11 21:47:13 +03:00
Ivan Lezhankin
5644fa8c41
Explicitly reset global TraceCollector instance.
2020-02-11 18:16:53 +03:00
Alexander Tokmakov
18dd0c8f8c
move DDLGuard to DatabaseCatalog
2020-02-10 21:31:52 +03:00
Alexander Tokmakov
45338ad9ca
fixes
2020-02-10 21:19:35 +03:00
Alexander Tokmakov
869e20d207
move databases from Context to DatabaseCatalog
2020-02-10 17:49:44 +03:00
Alexander Tokmakov
4ff7bf78ab
add DatabaseCatalog
2020-02-10 17:32:59 +03:00
Alexander Tokmakov
a508c25d05
store temporary tables in DatabaseMemory
2020-02-10 16:36:51 +03:00
Ivan
1b55150701
Add row-level filter support to Distributed engine ( #8926 )
...
* Add tests
* Implement support for initial user on remote side.
2020-02-07 22:31:09 +03:00
Ivan Lezhankin
abb1220cb3
Merge branch 'master' into memory-profiler
2020-02-07 18:16:41 +03:00
Vitaly Baranov
c9f2713cc4
Remove getting user by name from Context.
2020-02-06 18:12:53 +03:00
Vitaly Baranov
08c6061bdf
Add user_id to Context.
2020-02-06 18:12:54 +03:00
Ivan Lezhankin
88095b636e
Merge remote-tracking branch 'upstream/master' into memory-profiler
2020-02-03 16:21:21 +03:00
Vitaly Baranov
caeed69fe0
Change access rights dynamically when users.xml is edited.
2020-01-31 20:27:32 +03:00
Vitaly Baranov
10c912dab2
Rewrite the User class to be controlled by AccessControlManager.
2020-01-31 20:27:32 +03:00
Vitaly Baranov
168002376b
Remove old access rights checking code.
2020-01-31 20:27:32 +03:00
Vitaly Baranov
9e910222da
Add interfaces to check access rights.
2020-01-31 19:23:33 +03:00
Ivan Lezhankin
df0a3ce221
Merge remote-tracking branch 'upstream/master' into memory-profiler
2020-01-28 18:34:19 +03:00
Ivan Lezhankin
09b39b78e4
Remove obsolete pointer for trace collector in context.
2020-01-24 18:40:08 +03:00
Azat Khuzhin
88bfb788a9
Add ability to use multiple disks/volumes for temporary data
...
This patch adds <tmp_policy> config directive, that will define the
policy to use for storing temporary files, if it is not set (default)
the <tmp_path> will be used.
Also tmp_policy has some limitations:
- move_factor is ignored
- keep_free_space_bytes is ignored
- max_data_part_size_bytes is ignored
- must have exactly one volume
2020-01-23 20:31:01 +03:00
Ivan Lezhankin
7706e0a35c
Some renames
2020-01-22 18:20:19 +03:00
Ivan Lezhankin
1934706ca9
[WIP]
2020-01-21 19:39:52 +03:00
Alexander Tokmakov
9389c83d4d
Merge branch 'master' into table_name_in_istorage
2020-01-13 14:41:42 +03:00
Pradeep Chhetri
4941fdfe4b
Fix some spelling mistakes
2020-01-11 17:51:33 +08:00
Alexey Milovidov
02e90b13e2
Fixed error
2020-01-10 15:47:59 +03:00
Alexander Tokmakov
9b75ee2378
Merge branch 'master' into table_name_in_istorage
2020-01-09 17:33:58 +03:00