View a markdown version of this page

SHOW SCALEOUT ROUTING FUNCTIONS - Amazon Aurora

SHOW SCALEOUT ROUTING FUNCTIONS

Use SHOW SCALEOUT ROUTING FUNCTIONS to list the routing functions of a database cluster group for Aurora.

Description and syntax

Lists the names of the routing functions in the group. On Aurora MySQL, the result has the column Scaleout_routing_functions. The routing layer has no system table that lists routing functions, so this statement and SHOW CREATE SCALEOUT ROUTING FUNCTION are how you read them.

SHOW SCALEOUT ROUTING FUNCTIONS;

Parameters and options

None. The statement takes no LIKE, WHERE, or FROM clause; it returns every name in the group, sorted by name.

Where it runs and required privileges

Run the statement at the routing endpoint, in a session that isn't pinned. A pinned session passes the statement through to the member cluster unchanged. For the details, see Where these statements run.

For the privilege that the statement needs, see Privileges.

Usage notes

The statement returns names only. Read each definition with SHOW CREATE SCALEOUT ROUTING FUNCTION.

Examples

The following example lists the routing functions in the group.

SHOW SCALEOUT ROUTING FUNCTIONS;

Errors

The statement can return the following errors. For all errors from the routing layer, see Error codes for database cluster groups for Aurora.

Aurora MySQL Meaning
1064 Syntax error: a form outside the grammar.

For more information, see the following: