Tencent / TBase

TBase is an enterprise-level distributed HTAP database. Through a single database cluster to provide users with highly consistent distributed database services and high-performance data warehouse services, a set of integrated enterprise-level solutions is formed.
Other
1.38k stars 262 forks source link

meaning of __SUPPORT_DISTRIBUTED_TRANSACTION__ and other params from pg_config_manual.h #31

Closed yazun closed 4 years ago

yazun commented 4 years ago

Hello,

First, very impressive changes in comparison to Postgres-XL!

Could you explain what's the idea behind TBase specific defines and code defined in pg_config_manual.h? i.e. SUPPORT_DISTRIBUTED_TRANSACTION
COLD_HOT STORAGE_SCALABLE

There's clearly some code activated by them, but we would appreciate some small explanations. Also why these are disabled - is the code not trustworthy yet?

Thank you. Krzysztof Nienartowicz

Jasonysli commented 4 years ago

SUPPORT_DISTRIBUTED_TRANSACTION means use global timestamp as data version, this only can be true. COLD_HOT means enable cold hot data storage feature, this also only can be true;STORAGE_SCALABLE means enable a new storage engine which has been removed from TBase, so this parameter should be disabled. Sorry for the confusing parameters, maybe we should remove these parameters, to make code easy to read.