Cloud SQL information schema

MySQL  |  PostgreSQL  |  SQL Server

This page lists the Cloud SQL information schema table additions.

information_schema.innodb_vector_indexes

Gives all the vector indexes that are opened in the memory after restart.

Column nameDescription
INDEX_NAMEName of the index
TABLE_NAMEQualified table name in db_name.table_name format
INDEX_TYPETREE_SQ is supported
DIMENSIONDimensionality of the vector column
DIST_MEASUREDistance Measure on which index is built
STATUSA string describing the current state of the index
STATEInternal state of the index
NUM_LEAVESNumber of leaves as configured by the user or computed internally based on the size of the base table
NUM_LEAVES_TO_SEARCHNumber of leaves to search in ANN. Can be overridden at query time
QUERIESNumber of ANN queries on this index since server start
MUTATIONSNumber of DML operations on base table that resulted in updating the vector index
TREE_MEMORYMemory occupied by the non-leaf part of the vector index

information_schema.innodb_all_vector_indexes

Contains all the vector indexes that exists on the instance (even if they arenot opened in the memory yet).

Column nameDescription
idsame as innodb_indexes.index_id
table_idAn identifier representing the table associated with the index
sub_table_idAn identifier representing the sub table associated with the vector index
stateInternal state of the index. Same asinformation_schema.innodb_vector_indexes
corruptedIndicates whether the index is corrupted or not.1 means corrupted,0 means not corrupted.
configA json value showing index configuration.

In configuration:

  • "D" implies it is a static default value of this parameter.
  • "G" implies that the value is generated or computed internally.
  • "C" means that the value is explicitly specified by the user.

    The order of precedence is C > G > D.

information_schema.innodb_vector_indexes_memory

Provides information about overall memory usage of vector indexes in theinstance.

Column nameDescription
STATEMemory management for vector indexes is enabled.
TOTAL_MEMORYcloudsql_vector_max_mem_size
INDEX_MEMORYAmount of memory that is used to loadindex_tree into the memory.
TRAINING_MEMORYAmount of memory that is allocated for training during index build.
LOADED_INDEXNumber of indexes that are loaded in the memory.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.