Note
This parameter is available starting with V2.2.77.
Description
recyclebin_object_expire_time specifies the time after which schema objects in the recycle bin are automatically purged.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 0s, which indicates that the automatic purge feature is disabled. |
| Value range | [0s, +∞) |
| 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
If the value is not 0s, schema objects that were moved to the recycle bin a specified time ago are purged.
Examples
Disable the automatic purge feature.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "0s";Enable the automatic purge feature and purge schema objects that were moved to the recycle bin 7 days ago.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "7d";