Note
This parameter is available starting with V1.4.
Description
default_compress_func specifies the default compression algorithm for table data. You can also specify other compression algorithms when you create a table.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | String |
| Default value | zstd_1.3.8 |
| 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. |
Considerations
To avoid data inconsistency during the compression process, OceanBase Database no longer supports the zlib_1.0 compression algorithm starting from V4.2.2.
Examples
Set the default compression algorithm for table data to lz4_1.0.
obclient> ALTER SYSTEM SET default_compress_func = 'lz4_1.0';