kssenii
6bb3d06c88
Replace old named collections code for postgresql
2022-12-17 01:30:55 +01:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Robert Schulze
fd86829824
Consolidate config_core.h into config.h
...
Less duplication, less confusion ...
2022-09-28 13:31:57 +00:00
Anton Popov
e911900054
remove last mentions of data streams
2022-05-09 19:15:24 +00:00
Robert Schulze
777b5bc15b
Don't let storages inherit from boost::noncopyable
...
... IStorage has deleted copy ctor / assignment already
2022-05-03 09:07:08 +02:00
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
Anton Popov
a20922b2d3
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-11-09 15:36:25 +03:00
Alexey Milovidov
8b4a6a2416
Remove cruft
2021-10-28 02:10:39 +03:00
Nikolai Kochetov
ab28c6c855
Remove BlockInputStream interfaces.
2021-10-14 13:25:43 +03: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
Anton Popov
4c388e3d84
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-09-09 14:10:16 +03:00
kssenii
3423f8c984
Done postgres
2021-09-02 01:11:27 +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
Anton Popov
e36736b50c
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-08-02 22:52:02 +03:00
Nikolai Kochetov
9c92f43359
Update storages.
2021-07-23 22:33:59 +03:00
Anton Popov
3ed7f5a6cc
dynamic subcolumns: add snapshot for storage
2021-07-09 06:15:41 +03: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
kssenii
8a4711b716
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica
2021-05-16 20:55:18 +00:00
feng lv
9035e3a643
fix test and conflict
2021-05-11 16:22:24 +00:00
kssenii
5c24f0943c
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica
2021-05-08 14:54:44 +00:00
kssenii
912878ad7f
Review fixes
2021-05-07 12:05:34 +00:00
kssenii
8900e93bd8
New impl
2021-05-06 00:52:59 +00:00
feng lv
4ffe199d39
Implement table comments
2021-04-23 12:18:23 +00:00
kssenii
df84e4e93a
Fix
2021-04-11 23:39:18 +00:00
kssenii
01075677cf
Better
2021-04-11 20:22:33 +00:00
kssenii
c1adece94f
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica
2021-04-11 06:00:18 +00:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
kssenii
8586565ce9
Move connection-related filed to Core/PostgreSQL
2021-04-08 12:43:02 +00:00
kssenii
22b515fbc9
Add namespace, simplify names
2021-03-27 20:14:02 +00:00
kssenii
f40c582e7a
Replicas/shards for postgres storage
2021-03-27 20:11:48 +00:00
kssenii
ae64a24844
Add connection pool
2021-03-17 13:55:47 +00:00
kssenii
797063ae0f
Support non-default table schema for postgres storage/table-function
2021-03-14 10:35:10 +00:00
Alexey Milovidov
52cfc1d110
Minor changes
2021-01-15 23:09:31 +03:00
Alexey Milovidov
ba1921f380
Minor changes
2021-01-15 22:59:49 +03:00
kssenii
38a9cba850
Fix
2021-01-11 10:55:38 +00:00
kssenii
0088d66d59
Hopefully better array conversions for insert query
2021-01-09 22:42:42 +00:00
kssenii
e100aec086
Fix typos check
2020-12-31 11:15:05 +00:00
kssenii
8f8920a7ee
Add table cache, better drop table
2020-12-27 15:52:15 +00:00
kssenii
00a37404ca
Add postgresql database engine
2020-12-27 12:26:29 +00:00
kssenii
69f6714461
Add table function
2020-12-27 12:16:46 +00:00
kssenii
42023f4b95
Support insert into table
2020-12-27 12:16:27 +00:00
kssenii
2f6cb7f2f5
Add storage PostgreSQL with read support
2020-12-27 12:15:57 +00:00