Overview
The package_state_sync_max_size parameter specifies the maximum serializable length for a single package state.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 8192 |
| Value range | [0, 16777216] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
This parameter specifies the maximum serialized length for a single package state synchronization packet. In an ODP deployment scenario, if the OBServer determines that the serialized length required to synchronize packet variables exceeds this limit, it will send a special value to instruct ODP to continue routing subsequent statements to the original node for execution.
In distributed plan scenarios, an error would occur when a remote node constructed the package state if it received a specific value. This error occurred when the SQL statement contained UDFs (user-defined functions) or triggers and explicitly had the
parallel_enableclause. To resolve this, you can remove theparallel_enableclause or increase the value of thepackage_state_sync_max_sizeparameter.
Configuration example
Set the serializable length for a single package state to 8193.
obclient> ALTER SYSTEM SET package_state_sync_max_size=8193;