postgres函数存在于特定的模式中

jdzmm42g  于 2021-07-24  发布在  Java
关注(0)|答案(1)|浏览(259)

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

5n0oy7gb

5n0oy7gb1#

您可以调整以下查询:

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

相关问题