Skip to content

Metadata views

Query the MySQL name through the dialect or the PostgreSQL name from psql. SHOW helpers and the pending foreign key view are identified by their purpose.

Query the MySQL name through the dialect or the PostgreSQL name from psql. SHOW helpers and the pending foreign key view are identified by their purpose.

mys_informa_schema

PostgreSQL objectMySQL namePurposeSource definition
mys_informa_schema.columnsinformation_schema.columnsColumn order, data types, defaults, keys and generated expressions.SQL
mys_informa_schema.empty_global_variablesinformation_schema.empty_global_variablesGlobal system variable names and values for SHOW GLOBAL VARIABLES.SQL
mys_informa_schema.empty_session_variablesinformation_schema.empty_session_variablesSession system variable names and values for SHOW VARIABLES.SQL
mys_informa_schema.functionsinformation_schema.functionsRoutine names and attributes for SHOW FUNCTION or PROCEDURE STATUS.SQL
mys_informa_schema.indexsinformation_schema.indexsIndex columns and constraint keys in the shape expected by SHOW.SQL
mys_informa_schema.key_column_usageinformation_schema.key_column_usageColumns participating in keys, including referenced foreign-key columns.SQL
mys_informa_schema.parametersinformation_schema.parametersPositional and named routine parameters with their SQL types.SQL
mys_informa_schema.partitionsinformation_schema.partitionsPartition names, partitioning methods and catalog estimates.SQL
mys_informa_schema.proceduresinformation_schema.proceduresRoutine names and attributes for SHOW FUNCTION or PROCEDURE STATUS.SQL
mys_informa_schema.referential_constraintsinformation_schema.referential_constraintsForeign keys, referenced tables and referential actions.SQL
mys_informa_schema.routinesinformation_schema.routinesProcedure and function metadata derived from pg_proc.SQL
mys_informa_schema.schematainformation_schema.schemataDatabase names derived from PostgreSQL namespaces.SQL
mys_informa_schema.statisticsinformation_schema.statisticsOne row per index key part, including its ordinal and prefix length.SQL
mys_informa_schema.table_constraintsinformation_schema.table_constraintsConstraint names and kinds for each table.SQL
mys_informa_schema.tablesinformation_schema.tablesTable and view names and their MySQL table types.SQL
mys_informa_schema.triggersinformation_schema.triggersTrigger names, event timing and action metadata.SQL
mys_informa_schema.viewsinformation_schema.viewsView names and MySQL-compatible view attributes.SQL

mysql

PostgreSQL objectMySQL namePurposeSource definition
mysql.dualmysql.dualSingle dummy row for expressions queried FROM DUAL.SQL
mysql.pending_foreign_keysmysql.pending_foreign_keysDeferred foreign-key definitions awaiting their referenced tables.SQL
mysql.procmysql.procProcedure and function metadata derived from pg_proc.SQL