Note
This variable is available starting with V4.1.0.
Description
regexp_stack_limit specifies the maximum available memory for the internal stack used in regular expression matching operations. The default unit is bytes.
Privilege requirements
Query variables
systenants and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of global system variables.Modify variables
systenants can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 8000000 |
| Value range | [0, 2147483647] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the maximum available memory for the internal stack used in regular expression matching operations to 10 MB.
obclient> SET GLOBAL regexp_stack_limit = 10 * 1024 * 1024;