Note
- For V4.3.x, this parameter is available starting with V4.3.1.
- For V4.2.x, this parameter is available starting with V4.2.2.
Description
log_storage_compress_func specifies the compression algorithm for clog storage.
Privilege requirements
Query the parameter
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | string |
| Default value | lz4_1.0 |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the clog storage compression algorithm of the
tenant_nametenant in thesystenant tolz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0' tenant = 'tenant_name';Set the clog storage compression algorithm of all tenants to
lz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0' tenant=all;Set the clog storage compression algorithm of the current tenant to
lz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0';