Overview
regexp_stack_limit specifies the maximum amount of memory available for the internal stack used by regular expression matching. The default unit is bytes.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 8000000 |
| Value range | [0, 2147483647] |
| Effective Scope | Global |
| Modifiable | Yes, you can use the following methods:SETStatement modification. |
Configuration example
Set the maximum available memory for the internal stack of regular expression matching operations to 10 MB.
obclient> SET GLOBAL regexp_stack_limit = 10 * 1024 * 1024;