SHOW FUNCTION STATUS

注意事项

N/A

功能描述

显示有关存储函数的信息。

语法格式

  1. SHOW FUNCTION STATUS [LIKE 'pattern' | WHERE expr]

参数说明

  • WHERE expr

    筛选表达式。

  • LIKE ‘pattern’

    pattern正则表达式匹配函数名。

返回结果集

字段说明备注
Dbschema名字按照schema展示
Name函数名称
TYPE类型FUNCTION/PROCEDURE
Deinfer用户
Modified修改时间
Created创建时间
Security_type安全类型
Comment注释
character_set_client创建时客户端的字符集显示为空
collation_connection创建时客户端的排序规则显示为空
Database Collation数据库的排序集

示例

  1. -- 创建函数
  2. opengauss=# CREATE FUNCTION func_add_sql(integer, integer) RETURNS integer AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE RETURNS NULL ON NULL INPUT;
  3. CREATE FUNCTION
  4. opengauss=# show function status like 'func_add_s%';
  5. Db | Name | Type | Definer | Modified | Created | Security_type | Comment | character_set_client | collation_connection | Database Collation
  6. --------+--------------+----------+---------+-------------------------------+-------------------------------+---------------+---------+----------------------+----------------------+--------------------
  7. public | func_add_sql | FUNCTION | wyc | 2022-09-24 14:42:29.427382+08 | 2022-09-24 14:42:29.427382+08 | INVOKER | | | | en_US.UTF-8
  8. (1 row)