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
| Signature | Purpose | Source definition |
|---|---|---|
mysql.amend_def_val(text) → text | Format a PostgreSQL default expression for MySQL metadata. | SQL |
amend_def_val_for_internal
| Signature | Purpose | Source definition |
|---|---|---|
mysql.amend_def_val_for_internal(text) → text | Format a PostgreSQL default expression for MySQL metadata. | SQL |
column_domain
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_domain(oid, integer) → oid | Find the declared domain for a column. | SQL |
column_extra
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_extra(oid, integer) → text | Build the Extra field in column metadata. | SQL · C |
column_generation
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_generation(oid, integer) → text | Read the generation expression for a column. | SQL · C |
decimal_column_type
| Signature | Purpose | Source definition |
|---|---|---|
mysql.decimal_column_type(integer) → text | Decode DECIMAL precision and scale from a type modifier. | SQL · C |
decimal_ps
| Signature | Purpose | Source definition |
|---|---|---|
mysql.decimal_ps(integer) → integer[] | Decode DECIMAL precision and scale from a type modifier. | SQL |
get_column_extra
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_column_extra(text) → text | Build the Extra field in column metadata. | SQL |
get_column_key
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_column_key(oid, text) → text | Classify the index key for a column. | SQL |
mysql.get_column_key(text, text, text) → text | Classify the index key for a column. | SQL |
get_func_def
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_func_def(funcname text, procowner text, prorettype oid, proargtypes oidvector, proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
get_funcs_procs_parameters
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_funcs_procs_parameters() → SETOF record | List routine parameters for metadata clients. | SQL |
get_mysql_proc_arg_mode
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_mysql_proc_arg_mode(text) → text | Translate a PostgreSQL argument mode into a MySQL mode. | SQL |
get_mysql_type_name
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_mysql_type_name(oid) → text | Map a catalog type to its MySQL display name. | SQL |
get_proc_def
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_proc_def(funcname text, proallargtypes oid[], proargmodes "char"[], proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
mysql.get_proc_def(procname text, procowner text, proargtypes oidvector, proallargtypes oid[], proargmodes "char"[], proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
get_seq_in_index
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_seq_in_index(text, int2vector) → smallint | Find a column’s ordinal position in an index. | SQL |
index_key_name
| Signature | Purpose | Source definition |
|---|---|---|
mysql.index_key_name(oid) → text | Expose the MySQL index name or its key parts for SHOW INDEX. | SQL · C |
index_key_parts
| Signature | Purpose | Source definition |
|---|---|---|
mysql.index_key_parts(oid, OUT seq integer, OUT column_name text, OUT sub_part integer) → SETOF record | Expose the MySQL index name or its key parts for SHOW INDEX. | SQL · C |
show_create_function
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_function(text, text) → SETOF record | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_procedure
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_procedure(text, text) → SETOF record | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_table
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_table(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_table_impl
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_table_impl(oid, oid, text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_trigger
show_create_view
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_view(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_view_impl
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_view_impl(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL · C |
show_diagnostics
| Signature | Purpose | Source 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
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_columns(text, text) → SETOF record | Build the rows for SHOW COLUMNS. | SQL |
show_table_full_columns
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_full_columns(text, text) → SETOF record | Build the rows for SHOW COLUMNS. | SQL |
show_table_indexs
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_indexs(text, text) → SETOF record | Build the rows for SHOW INDEX. | SQL |
show_table_indexs_for_8
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_indexs_for_8(text, text) → SETOF record | Build the rows for SHOW INDEX. | SQL |