2015-10-28 91 views
0

的Postgres的功能,我有尝试使用功能不能使用在一定范围内

public.gen_random_uuid() 

但Postgres的回报的脚本:HINT: No function matches the given name and argument types. You might need to add explicit type casts.

但是当我尝试只是SELECT gen_random_uuid();它工作正常。所以清楚 公众。正在打破它。

我试图从我的search_path中删除public但这也没有帮助。

任何想法?

+0

“*所以很明显大众*” - 不是全部。 'show search_path'给你什么? –

回答

1

推测它是在不同的模式。检查。在psql

\df gen_random_uuid 

会告诉你架构。

否则:

select p.proname, n.nspname 
from pg_proc p inner join pg_namespace n on (p.pronamespace = n.oid) 
where p.proname = 'gen_random_uuid';