ERROR: function dblink(unknown, unknown) does not exist

我的未来我决定 提交于 2019-12-10 13:09:42

问题


I have defined a foreign server pointing to another database. I then want to execute a function in that database and get back the results.

When I try this:

SELECT * FROM  dblink('mylink','select someschema.somefunction(''test'', ''ABC'')')

or this:

SELECT t.n FROM  dblink('mylink', 'select * from someschema.mytable') as t(n text)

I get the error:

ERROR: function dblink(unknown, unknown) does not exist

Running as superuser.


回答1:


You need to install an extension dblink

create extension dblink;


来源:https://stackoverflow.com/questions/50936251/error-function-dblinkunknown-unknown-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!