Skip to content

SHOW and metadata helpers

Internal routines that format catalog values and construct result sets for MySQL clients.

Internal routines that format catalog values and construct result sets for MySQL clients.

amend_def_val

SignaturePurposeSource definition
mysql.amend_def_val(text) → textFormat a PostgreSQL default expression for MySQL metadata.SQL

amend_def_val_for_internal

SignaturePurposeSource definition
mysql.amend_def_val_for_internal(text) → textFormat a PostgreSQL default expression for MySQL metadata.SQL

column_domain

SignaturePurposeSource definition
mysql.column_domain(oid, integer) → oidFind the declared domain for a column.SQL

column_extra

SignaturePurposeSource definition
mysql.column_extra(oid, integer) → textBuild the Extra field in column metadata.SQL · C

column_generation

SignaturePurposeSource definition
mysql.column_generation(oid, integer) → textRead the generation expression for a column.SQL · C

decimal_column_type

SignaturePurposeSource definition
mysql.decimal_column_type(integer) → textDecode DECIMAL precision and scale from a type modifier.SQL · C

decimal_ps

SignaturePurposeSource definition
mysql.decimal_ps(integer) → integer[]Decode DECIMAL precision and scale from a type modifier.SQL

get_column_extra

SignaturePurposeSource definition
mysql.get_column_extra(text) → textBuild the Extra field in column metadata.SQL

get_column_key

SignaturePurposeSource definition
mysql.get_column_key(oid, text) → textClassify the index key for a column.SQL
mysql.get_column_key(text, text, text) → textClassify the index key for a column.SQL

get_func_def

SignaturePurposeSource definition
mysql.get_func_def(funcname text, procowner text, prorettype oid, proargtypes oidvector, proargnames text[], prosrc text) → textReconstruct a routine definition from its catalog fields.SQL

get_funcs_procs_parameters

SignaturePurposeSource definition
mysql.get_funcs_procs_parameters() → SETOF recordList routine parameters for metadata clients.SQL

get_mysql_proc_arg_mode

SignaturePurposeSource definition
mysql.get_mysql_proc_arg_mode(text) → textTranslate a PostgreSQL argument mode into a MySQL mode.SQL

get_mysql_type_name

SignaturePurposeSource definition
mysql.get_mysql_type_name(oid) → textMap a catalog type to its MySQL display name.SQL

get_proc_def

get_seq_in_index

SignaturePurposeSource definition
mysql.get_seq_in_index(text, int2vector) → smallintFind a column’s ordinal position in an index.SQL

index_key_name

SignaturePurposeSource definition
mysql.index_key_name(oid) → textExpose the MySQL index name or its key parts for SHOW INDEX.SQL · C

index_key_parts

SignaturePurposeSource definition
mysql.index_key_parts(oid, OUT seq integer, OUT column_name text, OUT sub_part integer) → SETOF recordExpose the MySQL index name or its key parts for SHOW INDEX.SQL · C

show_create_function

SignaturePurposeSource definition
mysql.show_create_function(text, text) → SETOF recordConstruct the definition displayed by SHOW CREATE.SQL

show_create_procedure

SignaturePurposeSource definition
mysql.show_create_procedure(text, text) → SETOF recordConstruct the definition displayed by SHOW CREATE.SQL

show_create_table

SignaturePurposeSource definition
mysql.show_create_table(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_table_impl

SignaturePurposeSource definition
mysql.show_create_table_impl(oid, oid, text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_trigger

show_create_view

SignaturePurposeSource definition
mysql.show_create_view(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_view_impl

SignaturePurposeSource definition
mysql.show_create_view_impl(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL · C

show_diagnostics

SignaturePurposeSource definition
mysql.show_diagnostics(boolean) → TABLE("Level" text, "Code" integer, "Message" text)Return the session diagnostics used by SHOW WARNINGS or SHOW ERRORS.SQL · C

show_table_columns

SignaturePurposeSource definition
mysql.show_table_columns(text, text) → SETOF recordBuild the rows for SHOW COLUMNS.SQL

show_table_full_columns

SignaturePurposeSource definition
mysql.show_table_full_columns(text, text) → SETOF recordBuild the rows for SHOW COLUMNS.SQL

show_table_indexs

SignaturePurposeSource definition
mysql.show_table_indexs(text, text) → SETOF recordBuild the rows for SHOW INDEX.SQL

show_table_indexs_for_8

SignaturePurposeSource definition
mysql.show_table_indexs_for_8(text, text) → SETOF recordBuild the rows for SHOW INDEX.SQL