ROUTE_INFO

2024-03-07 08:37:59  Updated

This topic describes the ROUTE_INFO diagnostic point.

The ROUTE_INFO diagnostic point records the routing type or routing address. The following table describes the diagnostic information at the ROUTE_INFO diagnostic point.

Field Description Remarks
route_info_type The routing type. Valid values:
  • USE_GLOBAL_INDEX: indicates global index table-based routing.
  • USE_CURSOR: indicates cursor-based routing.
  • USE_PIECES_DATA: indicates piece-based routing.
  • USE_CONFIG_TARGET_DB: indicates routing based on configured IP addresses.
  • USE_COMMENT_TARGET_DB: indicates routing based on IP addresses specified in a comment.
  • USE_LAST_SESSION: indicates routing by reusing an existing session.
  • USE_CACHED_SESSION: indicates routing based on a cached session.
  • USE_PARTITION_LOCATION_LOOKUP: indicates partition-based routing. Partition information is queried and calculated. You need to check the diagnostic information at subsequent diagnostic points.
  • USE_COORDINATOR_SESSION: indicates distributed transaction coordinator-based routing. For more information, see Distributed transaction routing.
  • USE_ROUTE_POLICY: indicates strategy-based routing, which is applied when the table name cannot be parsed.
svr_addr The address of the selected OBServer node. When the value of route_info_type is USE_CURSOR, USE_PIECES_DATA, USE_CONFIG_TARGET_DB, USE_COMMENT_TARGET_DB, USE_LAST_SESSION, USE_CACHED_SESSION, or USE_COORDINATOR_SESSION, the IP address of the OBServer node is returned here.
in_transaction Indicates whether the current statement is in a transaction. If the current SQL statement is the first statement in a transaction, the value of this parameter is false.
depent_func Indicates whether the user request involves function dependencies, that is, whether the current statement depends on the execution result of the last statement. The following six statements contain function dependencies in requests:
  • show errors;
  • show warnings;
  • show trace;
  • select found_row();
  • select row_count();
  • select connection_id();
trans_specified Indicates whether to perform forcible routing. In forcible routing, a session-level temporary table may be queried.

Contact Us