SQL commands
CREATE DISTRIBUTION
This command is used to create a new distribution with the specified name. Optionally, you can specify the column types for the distribution using the COLUMN TYPES clause.
DROP DISTRIBUTION
This command is used to drop an existing distribution with the specified name. The CASCADE keyword is optional and indicates that any dependent objects should also be dropped.
ALTER DISTRIBUTION ATTACH RELATION
This command is used to alter an existing distribution. You can attach one or more relations to the distribution using the ATTACH RELATION clause.
ALTER DISTRIBUTION DETACH RELATION
This command is used to alter an existing distribution. You can detach a relation from the distribution using the DETACH RELATION clause.
CREATE KEY RANGE
This command is used to create a new key range. Since the key space is an ordered set, it is enough to specify only one end of the range
DROP KEY RANGE
This command is used to drop an existing key range.
MOVE KEY RANGE
This command is used to move an existing key range to a different shard.
SPLIT KEY RANGE
This command is used to split an existing key range into two separate key ranges.
UNITE KEY RANGE
This command is used to unite two adjacent key ranges into a single key range.
SHOW
This command is used to retrieve information about a specific entity of SPQR cluster and simple filtering.
Thewhere_clause
is used to filter the results based on specific conditions. It allows you to specify criteria for selecting the information to be shown.
Exists feature - order by col asc/desc for clients.
The ORDER BY column feature works with clients, not works with other entities.
KILL CLIENT
This command is used to terminate a specific client connection in a SPQR Router.
INVALIDATE CACHE
This command is used to invalidate the cache for a specific schema or the entire cache in the SPQR Router.
Was this page helpful?