Postgres 函数存在于特定的架构中



我有具有多个模式的postgres DB,有没有一种方法(查询(可以运行来确定特定模式中是否存在函数,或者换句话说,打印给定函数存在的模式名称列表。

您可以调整以下查询:

select routine_name, routine_schema 
from information_schema.routines 
where routine_name='myfunction' 
and routine_type='FUNCTION';

最新更新