云数据库 GAUSSDB-序列号生成函数:gs_search_function_with_name(funcname)
时间:2025-06-03 09:35:45
gs_search_function_with_name(funcname)
描述:获取函数名为funcname的函数OID。
参数类型:cstring
返回值类型:setof oid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
--基本用法。 CREATE OR REPLACE FUNCTION proc_plpgsql(a int,b int, c int) RETURNS int AS $BODY$ DECLARE BEGIN RETURN $1 + $2; END; $BODY$ language plpgsql; CREATE OR REPLACE FUNCTION proc_plpgsql(int,int) RETURNS int AS $BODY$ DECLARE BEGIN RETURN $1 + $2; END; $BODY$ language plpgsql; gaussdb=# SELECT gs_search_function_with_name('proc_plpgsql'); gs_search_function_with_name ------------------------------ 16776 24576 (2 rows) |
support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-2048.html