Robert Schulze
330212e0f4
Remove inherited create() method + disallow copying
...
The original motivation for this commit was that shared_ptr_helper used
std::shared_ptr<>() which does two heap allocations instead of
make_shared<>() which does a single allocation. Turned out that
1. the affected code (--> Storages/) is not on a hot path (rendering the
performance argument moot ...)
2. yet copying Storage objects is potentially dangerous and was
previously allowed.
Hence, this change
- removes shared_ptr_helper and as a result all inherited create() methods,
- instead, Storage objects are now created using make_shared<>() by the
caller (for that to work, many constructors had to be made public), and
- all Storage classes were marked as noncopyable using boost::noncopyable.
In sum, we are (likely) not making things faster but the code becomes
cleaner and harder to misuse.
2022-05-02 08:46:52 +02:00
Amos Bird
4a5e4274f0
base should not depend on Common
2022-04-29 10:26:35 +08:00
Anton Popov
0ba78c3c3a
Merge remote-tracking branch 'upstream/master' into HEAD
2022-03-16 15:28:09 +00:00
Heena Bansal
c774458f96
Update src/Storages/StoragePostgreSQL.cpp
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2022-03-14 10:38:12 -04:00
HeenaBansal2009
09be30ac26
Added suggestion from review comments
2022-03-11 07:33:23 -08:00
HeenaBansal2009
d981463b05
Added RemoteHostFilter check for MYSQL and postgresSQL
2022-03-10 08:58:48 -08:00
Anton Popov
e8ce091e68
Merge remote-tracking branch 'upstream/master' into HEAD
2022-01-21 20:11:18 +03:00
kssenii
55dfaef4de
Settings changes as key value
2021-12-27 17:45:00 +03:00
Anton Popov
a20922b2d3
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-11-09 15:36:25 +03:00
kssenii
e04e37916e
Review fixes
2021-10-23 18:20:31 +03:00
kssenii
7b81766168
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into remote-connection
2021-10-15 12:36:44 +00:00
Nikolai Kochetov
ec18340351
Remove streams from formats.
2021-10-11 19:11:50 +03:00
kssenii
1de55cfeb4
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into remote-connection
2021-10-11 11:33:35 +00:00
Nikolai Kochetov
340b53ef85
Remove some more streams.
2021-10-08 17:03:54 +03:00
kssenii
5a87b6eb4f
Predefined configuration for table function remote
2021-10-06 05:55:09 +00:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
Azat Khuzhin
a4f2663b82
Log queries to external databases (since they may be rewriten)
...
By rewritten means that some expression from WHERE can be removed, yes
there is external_table_strict_query, but sometimes it is too strict.
2021-09-29 21:56:28 +03:00
Nikolai Kochetov
998d29ebc7
Merge branch 'master' into rewrite-pushing-to-views
2021-09-23 13:10:27 +03:00
kssenii
1650c92407
Better
2021-09-16 11:38:26 +03:00
kssenii
221c09589c
Review fixes
2021-09-15 21:11:49 +03:00
Nikolai Kochetov
f569a3e3f7
Merge branch 'master' into rewrite-pushing-to-views
2021-09-09 20:30:23 +03:00
Anton Popov
4c388e3d84
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-09-09 14:10:16 +03:00
kssenii
a1e4d2e230
Fix style check and pvs check
2021-09-05 01:03:15 +03:00
Nikolai Kochetov
66a76ab70f
Rewrite PushingToViewsBlockOutputStream part 6
2021-09-03 20:29:36 +03:00
kssenii
a5f56bb588
Some other
2021-09-03 16:25:40 +03:00
kssenii
7a45775f4f
Complete postgres
2021-09-02 13:46:19 +03:00
kssenii
3423f8c984
Done postgres
2021-09-02 01:11:27 +03:00
kssenii
0b66581de2
Fix build
2021-08-25 21:51:43 +00:00
Kseniia Sumarokova
5bbf5dacc5
Update src/Storages/StoragePostgreSQL.cpp
...
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2021-08-24 16:13:57 +03:00
kssenii
0ec716292c
Postgres ON CONFLICT
2021-08-24 12:37:32 +00:00
Anton Popov
61239343e3
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-08-20 16:33:30 +03:00
kssenii
200d75646a
Fix
2021-08-13 20:58:03 +00:00
Maksim Kita
124a87684f
Removed some data streams
2021-08-11 23:39:01 +03:00
Nikolai Kochetov
13f95f3fdf
Streams -> Processors for dicts, part 3.
2021-08-06 11:41:45 +03:00
Anton Popov
e36736b50c
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-08-02 22:52:02 +03:00
Nikolai Kochetov
fa1c223269
Fix some tests.
2021-07-26 13:08:40 +03:00
Nikolai Kochetov
9c92f43359
Update storages.
2021-07-23 22:33:59 +03:00
Anton Popov
f99374cca6
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-07-20 18:20:21 +03:00
jasine
a0ec8e9878
fix: DateTime64 on MaterializedPostgreSQL ( #2 )
...
* fix: DateTime64 on MaterializedPostgreSQL
* Update StoragePostgreSQL.cpp
2021-07-14 01:59:33 +08:00
jasine
9832c48c33
fix postgres test and array of DateTime64 ( #1 )
...
fix postgres test and array of DateTime64
2021-07-13 15:28:15 +08:00
Anton Popov
3ed7f5a6cc
dynamic subcolumns: add snapshot for storage
2021-07-09 06:15:41 +03:00
Anton Popov
072e65b728
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-07-07 17:20:38 +03:00
kssenii
9d5847a1a8
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica
2021-06-29 21:30:31 +00:00
Raúl Marín
bfc122df64
Fix some typos in Storage classes
2021-06-28 19:03:56 +02:00
kssenii
3d90f0710c
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica
2021-06-26 22:04:47 +00:00
Maksim Kita
67e9b85951
Merge ext into common
2021-06-16 23:28:41 +03:00
Kseniia Sumarokova
661524e3d0
Update StoragePostgreSQL.cpp
2021-06-16 12:11:31 +03:00
Kseniia Sumarokova
9cb9aca6b8
Update StoragePostgreSQL.cpp
2021-06-11 09:44:36 +03:00
kssenii
8cbd9ec733
Fixes
2021-06-10 16:23:04 +00:00
Anton Popov
0bdf9d207c
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-05-26 00:25:47 +03:00