云数据库 GAUSSDB-ALTER FUNCTION:示例

时间:2023-11-15 15:55:17

示例

请参见CREATE FUNCTION的示例

重编译示例:
-- 开启依赖功能
set behavior_compat_options ='plpgsql_dependency';
-- 创建函数
create or replace function test_func(a int) return int
is
    proc_var int;
begin
    proc_var := a;
    return 1;
end;
/
-- 用函数名重编译函数
alter procedure test_func compile;
-- 用函数带类型签名重编译存储过程
alter procedure test_func(int) compile;
support.huaweicloud.com/centralized-devg-v3-gaussdb/gaussdb-12-0477.html